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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
4bebe27e
Commit
4bebe27e
authored
Jul 25, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added failing test case for literal lists to make sure we fix it for 0.17
parent
ae62e5ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
tests/run/literal_lists.pyx
tests/run/literal_lists.pyx
+13
-0
No files found.
tests/run/literal_lists.pyx
View file @
4bebe27e
...
...
@@ -10,6 +10,19 @@ import sys
if
sys
.
version_info
[
0
]
<
3
:
__doc__
=
__doc__
.
replace
(
u"b'"
,
u"'"
)
def
repeated_literals
():
"""
>>> repeated_literals()
p1: [4, 4]
p2: [5, 5]
"""
cdef
int
i
cdef
int
*
p1
=
[
4
,
4
]
cdef
int
*
p2
=
[
5
,
5
]
print
"p1: %s"
%
[
p1
[
i
]
for
i
in
range
(
2
)
]
print
"p2: %s"
%
[
p2
[
i
]
for
i
in
range
(
2
)
]
def
test_ints
(
int
x
):
"""
>>> test_ints(100)
...
...
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