Ejemplo n.º 1
0
 def test_hfloat(self):
     self.assertEqual(str(debug.hfloat(10, 5)), '10')
     self.assertEqual(str(debug.hfloat(10.45645234234, 5)), '10.456')
Ejemplo n.º 2
0
def test_hfloat(f, precision, expected):
    assert str(debug.hfloat(f, precision)) == expected
Ejemplo n.º 3
0
def test_hfloat(f, precision, expected):
    assert str(debug.hfloat(f, precision)) == expected
Ejemplo n.º 4
0
 def test_hfloat(self):
     self.assertEqual(str(debug.hfloat(10, 5)), '10')
     self.assertEqual(str(debug.hfloat(10.45645234234, 5)), '10.456')