Merge pull request #22212 from edx/nedbat/more-rounding-tests

Add more tests of the new round()
This commit is contained in:
Ned Batchelder
2019-11-01 12:46:32 -04:00
committed by GitHub

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)