Exemplo n.º 1
0
 def test_almost_equal_zero(self):
     self.assertTrue(qautils.almost_equal(0, 0))
Exemplo n.º 2
0
 def test_almost_equal_equal(self):
     self.assertTrue(qautils.almost_equal(1, 1))
Exemplo n.º 3
0
 def test_almost_equal_small(self):
     self.assertTrue(qautils.almost_equal(1, 1 + 1E-10))
Exemplo n.º 4
0
 def test_almost_equal_none(self):
     self.assertFalse(qautils.almost_equal(None, None))
Exemplo n.º 5
0
 def test_almost_equal_zero(self):
     self.assertTrue(qautils.almost_equal(0, 0))
Exemplo n.º 6
0
 def test_almost_equal_small(self):
     self.assertTrue(qautils.almost_equal(1, 1 + 1E-10))
Exemplo n.º 7
0
 def test_almost_equal_equal(self):
     self.assertTrue(qautils.almost_equal(1, 1))
Exemplo n.º 8
0
 def test_almost_equal_none(self):
     self.assertFalse(qautils.almost_equal(None, None))