tests/float: Add test for parsing a float from an empty string.
This commit is contained in:
parent
4fb72fe624
commit
290daa15d9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user