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