tests/float: Improve formatfloat.c test coverage using Python.

This commit is contained in:
Rami Ali
2017-01-05 11:06:12 +11:00
committed by Damien George
parent ec72db8a39
commit 64dc925c4a
3 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
# uPy and CPython outputs differ for the following
print("%.1g" % -9.9) # round up 'g' with '-' sign
print("%.1e" % 9.99) # round up with positive exponent
print("%.1e" % 0.999) # round up with negative exponent