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
a60e97c2
Commit
a60e97c2
authored
Apr 21, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case for DEF int constant assignment
parent
8fbd8049
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
tests/run/ct_DEF.pyx
tests/run/ct_DEF.pyx
+21
-5
No files found.
tests/run/ct_DEF.pyx
View file @
a60e97c2
__doc__
=
"""
>>> c()
120
>>> i()
42
>>> i1() == 42
True
>>> i2() == 0x42
True
>>> i3() == 042
True
>>> l()
666
>>> f()
...
...
@@ -23,7 +27,9 @@ DEF TUPLE = (1, 2, "buckle my shoe")
DEF
TRUE_FALSE
=
(
True
,
False
)
DEF
CHAR
=
c
'x'
DEF
INT
=
42
DEF
INT1
=
42
DEF
INT2
=
0x42
DEF
INT3
=
042
DEF
LONG
=
666L
DEF
FLOAT
=
12.5
DEF
STR
=
"spam"
...
...
@@ -37,9 +43,19 @@ def c():
c
=
CHAR
return
c
def
i
():
def
i1
():
cdef
int
i
i
=
INT1
return
i
def
i2
():
cdef
int
i
i
=
INT2
return
i
def
i3
():
cdef
int
i
i
=
INT
i
=
INT
3
return
i
def
l
():
...
...
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