From 49bf7617d0a7de0304c93bd65ed3dfcec2cddebd Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 20 Dec 2016 14:01:10 +1100 Subject: [PATCH] tests/float/builtin_float_round: Test round() with second arg. --- tests/float/builtin_float_round.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/float/builtin_float_round.py b/tests/float/builtin_float_round.py index 4419b744b0..de72514db7 100644 --- a/tests/float/builtin_float_round.py +++ b/tests/float/builtin_float_round.py @@ -13,5 +13,5 @@ for i in range(11): print(round((i - 5) / 2)) # test second arg -# TODO uPy currently only supports second arg being 0 -print(round(1.4, 0)) +for i in range(-1, 3): + print(round(1.47, i))