def testinverse1(self):
     # resultList = hw.scoreList(["a", "s", "m", "t", "p", "z"], testDictionary)
     self.assertAlmostEqual(hw.inverse(3.0), 1.0 / 3.0)
 def testinverse4(self):
     self.assertAlmostEqual(hw.inverse(6.0), 1.0 / 6.0)
 def testinverse5(self):
     self.assertAlmostEqual(hw.inverse(7.0), 1.0 / 7.0)
 def testinverse2(self):
     self.assertAlmostEqual(hw.inverse(4.0), 1.0 / 4.0)
 def testinverse3(self):
     self.assertAlmostEqual(hw.inverse(5.0), 1.0 / 5.0)
Exemple #6
0
 def testinverse2(self):
     self.assertAlmostEqual(hw.inverse(4.0), 1.0/4.0)
Exemple #7
0
 def testinverse1(self):
     #resultList = hw.scoreList(["a", "s", "m", "t", "p", "z"], testDictionary)
     self.assertAlmostEqual(hw.inverse(3.0), 1.0/3.0)
Exemple #8
0
 def testinverse5(self):
     self.assertAlmostEqual(hw.inverse(7.0), 1.0/7.0)
Exemple #9
0
 def testinverse4(self):
     self.assertAlmostEqual(hw.inverse(6.0), 1.0/6.0)
Exemple #10
0
 def testinverse3(self):
     self.assertAlmostEqual(hw.inverse(5.0), 1.0/5.0)