diff options
author | Damien George <damien.p.george@gmail.com> | 2014-11-29 14:47:54 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-11-29 14:47:54 +0000 |
commit | 7288403b9b0e3cc6193c5f563c7014a0c4f1f23f (patch) | |
tree | 49a351272d6a21259fc61f2bebb478ea0f05e598 /tests/basics/builtin_round.py | |
parent | 3b603f29ec093b77b6fad72d77becd5375310637 (diff) |
tests: Split out float test from builtin_round.py.
Diffstat (limited to 'tests/basics/builtin_round.py')
-rw-r--r-- | tests/basics/builtin_round.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/basics/builtin_round.py b/tests/basics/builtin_round.py index 5ced0c4cd..7f0edfe84 100644 --- a/tests/basics/builtin_round.py +++ b/tests/basics/builtin_round.py @@ -1,14 +1,8 @@ -# test round() +# test round() with integral values -# check basic cases tests = [ False, True, 0, 1, -1, 10, - 0.0, 1.0, 0.1, -0.1, 123.4, 123.6, -123.4, -123.6 ] for t in tests: print(round(t)) - -# check .5 cases -for i in range(11): - print(round((i - 5) / 2)) |