Commit bf579cac authored by Stefan Behnel's avatar Stefan Behnel

extended test case

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