Commit 290daa15 authored by Damien George's avatar Damien George
Browse files

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

parent 4fb72fe6
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment