From 0fc8bb5e4b59c1431ab24b43aa7d6a6c3c76b45e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 1 Nov 2019 07:47:12 -0400 Subject: [PATCH] Add more tests of the new round() --- openedx/core/lib/tests/test_grade_utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openedx/core/lib/tests/test_grade_utils.py b/openedx/core/lib/tests/test_grade_utils.py index 4d6dd00912..34c86d6bc0 100644 --- a/openedx/core/lib/tests/test_grade_utils.py +++ b/openedx/core/lib/tests/test_grade_utils.py @@ -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)