Ejemplo n.º 1
0
 def test_Round(self):
     expected = [(round(x, ndigits=1), round(0.05, ndigits=1))
                 for x in zero_one_rng]
     t = ts.Timer(foo_zero_one, count=len(zero_one_rng), use_dual=True)
     out = ts.Round(t, 1)
     assert ts.run(out) == expected
Ejemplo n.º 2
0
 def test_Round(self):
     t = ts.Timer(foofloat, count=2)
     out = ts.Round(t, 1)
     assert ts.run(out) == [1.1, 2.2]