summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/builtin_float_round.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-12-20 14:01:10 +1100
committerDamien George <damien.p.george@gmail.com>2016-12-20 14:01:10 +1100
commit49bf7617d0a7de0304c93bd65ed3dfcec2cddebd (patch)
tree81c15b55dc93fbacaea57ac0e18d0d964803f443 /tests/float/builtin_float_round.py
parent7318949c467aaf5a29d045b4e9f38ac5ac20aadb (diff)
downloadmicropython-49bf7617d0a7de0304c93bd65ed3dfcec2cddebd.tar.gz
micropython-49bf7617d0a7de0304c93bd65ed3dfcec2cddebd.zip
tests/float/builtin_float_round: Test round() with second arg.
Diffstat (limited to 'tests/float/builtin_float_round.py')
-rw-r--r--tests/float/builtin_float_round.py4
1 files 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))