Commit b6bdc98a authored by Robert Bradshaw's avatar Robert Bradshaw

literal float tests

parent 565253cd
__doc__ = u"""
>>> foo()
>>> test_float(1./3)
True
>>> test_complex(1j/3)
True
"""
def foo():
......@@ -46,3 +50,11 @@ with ' and " quotes"""
q = "NameLikeString2"
r = "99_percent_un_namelike"
s = "Not an \escape"
def test_float(x):
return x == 1./3
def test_complex(x):
return x == 0.3333333333333333j
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