diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basics/builtin_round.py | 2 | ||||
-rw-r--r-- | tests/float/builtin_float_round.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/basics/builtin_round.py b/tests/basics/builtin_round.py index 7f0edfe84d..579bae39d9 100644 --- a/tests/basics/builtin_round.py +++ b/tests/basics/builtin_round.py @@ -2,7 +2,7 @@ tests = [ False, True, - 0, 1, -1, 10, + 0, 1, -1, 10 ] for t in tests: print(round(t)) diff --git a/tests/float/builtin_float_round.py b/tests/float/builtin_float_round.py index 6759d0fd5a..4419b744b0 100644 --- a/tests/float/builtin_float_round.py +++ b/tests/float/builtin_float_round.py @@ -2,10 +2,11 @@ # check basic cases tests = [ - 0.0, 1.0, 0.1, -0.1, 123.4, 123.6, -123.4, -123.6 + [0.0], [1.0], [0.1], [-0.1], [123.4], [123.6], [-123.4], [-123.6], + [1.234567, 5], [1.23456, 1], [1.23456, 0], [1234.56, -2] ] for t in tests: - print(round(t)) + print(round(*t)) # check .5 cases for i in range(11): |