Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment