Commit 2996bded authored by Stefan Behnel's avatar Stefan Behnel

extended test case to also cover ticket #6

parent 5cf5559b
......@@ -44,6 +44,11 @@ __doc__ = u"""
-inf
>>> float_infn == float('-inf')
True
>>> global_floats()[1:] == (float('+inf'), float('-inf'))
True
>>> global_floats()[0]
nan
"""
DEF FLOAT = 12.5
......@@ -51,6 +56,10 @@ DEF FLOAT_NAN = float('nan')
DEF FLOAT_INFP = float('+inf')
DEF FLOAT_INFN = float('-inf')
cdef double cdef_float_nan = float('nan')
cdef double cdef_float_infp = float('+inf')
cdef double cdef_float_infn = float('-inf')
float_nan = FLOAT_NAN
float_infp = FLOAT_INFP
float_infn = FLOAT_INFN
......@@ -105,3 +114,5 @@ def infn3():
f = FLOAT_INFN
return f
def global_floats():
return (cdef_float_nan, cdef_float_infp, cdef_float_infn)
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