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