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