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

This commit is contained in:
Damien George 2016-09-27 15:44:56 +10:00
parent 4fb72fe624
commit 290daa15d9

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: