Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
bf579cac
Commit
bf579cac
authored
Apr 25, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extended test case
parent
ed08ae5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
tests/run/specialfloat.pyx
tests/run/specialfloat.pyx
+25
-0
No files found.
tests/run/specialfloat.pyx
View file @
bf579cac
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment