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
b6bdc98a
Commit
b6bdc98a
authored
Jan 19, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
literal float tests
parent
565253cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tests/run/literals.pyx
tests/run/literals.pyx
+12
-0
No files found.
tests/run/literals.pyx
View file @
b6bdc98a
__doc__
=
u"""
__doc__
=
u"""
>>> foo()
>>> foo()
>>> test_float(1./3)
True
>>> test_complex(1j/3)
True
"""
"""
def
foo
():
def
foo
():
...
@@ -46,3 +50,11 @@ with ' and " quotes"""
...
@@ -46,3 +50,11 @@ with ' and " quotes"""
q = "NameLikeString2"
q = "NameLikeString2"
r = "99_percent_un_namelike"
r = "99_percent_un_namelike"
s = "Not an
\
esc
a
pe"
s = "Not an
\
esc
a
pe"
def test_float(x):
return x == 1./3
def test_complex(x):
return x == 0.3333333333333333j
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