tests/float: Add test for parsing a float from an empty string.

zephyr-rebase
Damien George 2016-09-27 15:44:56 +10:00
parent 4fb72fe624
commit 290daa15d9
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ print(float("infinity"))
print(float("INFINITY"))
print(float("nan"))
print(float("NaN"))
try:
float("")
except ValueError:
print("ValueError")
try:
float("1e+")
except ValueError: