예제 #1
0
 def test_hfloat(self):
     self.assertEqual(str(debug.hfloat(10, 5)), '10')
     self.assertEqual(str(debug.hfloat(10.45645234234, 5)), '10.456')
예제 #2
0
파일: test_debug.py 프로젝트: bryson/celery
def test_hfloat(f, precision, expected):
    assert str(debug.hfloat(f, precision)) == expected
예제 #3
0
def test_hfloat(f, precision, expected):
    assert str(debug.hfloat(f, precision)) == expected
예제 #4
0
 def test_hfloat(self):
     self.assertEqual(str(debug.hfloat(10, 5)), '10')
     self.assertEqual(str(debug.hfloat(10.45645234234, 5)), '10.456')