Add more tests of the new round()

This commit is contained in:
Ned Batchelder
2019-11-01 07:47:12 -04:00
parent 75c83a2584
commit 0fc8bb5e4b

View File

@@ -48,8 +48,14 @@ class TestGradeUtils(TestCase):
@ddt.data(
(0.5, 1),
(1.49, 1),
(1.5, 2),
(1.51, 2),
(2.5, 3),
(1.45, 1.5, 1),
(-0.5, -1.0),
(-1.5, -2.0),
(-2.5, -3.0),
(-0.1, -0.0),
(0.1, 0.0),
(0.0, 0.0)