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
Gwenaël Samain
cython
Commits
c36853a4
Commit
c36853a4
authored
Sep 21, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend integer literal tests
parent
2c9d175b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
tests/run/literals.pyx
tests/run/literals.pyx
+20
-0
No files found.
tests/run/literals.pyx
View file @
c36853a4
# mode: run
def
foo
():
"""
>>> foo()
"""
a
=
42
a1
=
0123
an1
=
-
0123
assert
a1
==
-
an1
a2
=
0xabc
an2
=
-
0xabc
assert
a2
==
-
an2
a3
=
0xDEF
an3
=
-
0xDEF
assert
a3
==
-
an3
a4
=
1234567890L
an4
=
-
1234567890L
assert
a4
==
-
an4
a5
=
0o123
an5
=
-
0o123
assert
a5
==
-
an5
assert
a5
==
a1
a6
=
0b101
an6
=
-
0b101
assert
a6
==
-
an6
==
5
b
=
42.88e17
b0a
=
1.
b0b
=
.
1
...
...
@@ -16,8 +34,10 @@ def foo():
b0f
=
1.1e1
b0g
=
1.1e-1
b0h
=
1e1
b1
=
3j
b2
=
3.1415J
b3
=
c
'X'
c
=
"spanish inquisition"
d
=
"this"
"parrot"
"is"
"resting"
...
...
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