Skip to content

Commit 49bf761

Browse files
committed
tests/float/builtin_float_round: Test round() with second arg.
1 parent 7318949 commit 49bf761

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/float/builtin_float_round.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
print(round((i - 5) / 2))
1414

1515
# test second arg
16-
# TODO uPy currently only supports second arg being 0
17-
print(round(1.4, 0))
16+
for i in range(-1, 3):
17+
print(round(1.47, i))

0 commit comments

Comments
 (0)