Exemple #1
0
 def test_almostEqual_NotAlmostEqual_TooManyPointsApart(self):
     self.assert_(not PigTest.almostEqual(28.00001, 25.000003814697266, 4))
Exemple #2
0
 def test_almostEqual_NotAlmostEqual_IntegerPart(self):
     self.assert_(not PigTest.almostEqual(28.000002, 25.000003814697266, 4))
Exemple #3
0
 def test_almostEqual_AreAlmostEqual(self):       
     self.assert_(PigTest.almostEqual(25.000002, 25.000003814697266, 4))
Exemple #4
0
 def test_almostEqual_NotAlmostEqual_TooManyPointsApart(self):
     self.assert_(not PigTest.almostEqual(28.00001, 25.000003814697266, 4))
Exemple #5
0
 def test_almostEqual_NotAlmostEqual_IntegerPart(self):
     self.assert_(not PigTest.almostEqual(28.000002, 25.000003814697266, 4))
Exemple #6
0
 def test_almostEqual_AreAlmostEqual(self):
     self.assert_(PigTest.almostEqual(25.000002, 25.000003814697266, 4))