Commit bf579cac authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent ed08ae5b
......@@ -6,6 +6,8 @@ __doc__ = """
nan
>>> nan2()
nan
>>> nan3()
nan
>>> float_nan
nan
......@@ -17,6 +19,10 @@ __doc__ = """
inf
>>> infp2() == float('inf')
True
>>> infp3()
inf
>>> infp3() == float('inf')
True
>>> float_infp
inf
>>> float_infp == float('inf')
......@@ -30,6 +36,10 @@ __doc__ = """
-inf
>>> infn2() == float('-inf')
True
>>> infn3()
-inf
>>> infn3() == float('-inf')
True
>>> float_infn
-inf
>>> float_infn == float('-inf')
......@@ -60,6 +70,11 @@ def nan2():
f = float('nan')
return f
def nan3():
cdef float f
f = FLOAT_NAN
return f
def infp1():
cdef double f
f = FLOAT_INFP
......@@ -70,6 +85,11 @@ def infp2():
f = float('+inf')
return f
def infp3():
cdef float f
f = FLOAT_INFP
return f
def infn1():
cdef double f
f = FLOAT_INFN
......@@ -80,3 +100,8 @@ def infn2():
f = float('-inf')
return f
def infn3():
cdef float f
f = FLOAT_INFN
return f
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