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
a841345b
Commit
a841345b
authored
Oct 29, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T442, not T441.
parent
15913097
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tests/run/enumerate_T316.pyx
tests/run/enumerate_T316.pyx
+5
-5
No files found.
tests/run/enumerate_T316.pyx
View file @
a841345b
...
@@ -70,13 +70,13 @@ def go_py_enumerate():
...
@@ -70,13 +70,13 @@ def go_py_enumerate():
for
i
,
k
in
enumerate
(
range
(
1
,
5
)):
for
i
,
k
in
enumerate
(
range
(
1
,
5
)):
print
i
,
k
print
i
,
k
#T44
1
@cython.test_fail_if_path_exists("//SimpleCallNode//NameNode[@name = 'enumerate']")
#T44
2
@cython.test_fail_if_path_exists("//SimpleCallNode//NameNode[@name = 'enumerate']")
def
go_c_enumerate
():
def
go_c_enumerate
():
cdef
int
i
,
k
cdef
int
i
,
k
for
i
,
k
in
enumerate
(
range
(
1
,
5
)):
for
i
,
k
in
enumerate
(
range
(
1
,
5
)):
print
i
,
k
print
i
,
k
#T44
1
@cython.test_fail_if_path_exists("//SimpleCallNode//NameNode[@name = 'enumerate']")
#T44
2
@cython.test_fail_if_path_exists("//SimpleCallNode//NameNode[@name = 'enumerate']")
def
go_c_enumerate_step
():
def
go_c_enumerate_step
():
cdef
int
i
,
k
cdef
int
i
,
k
for
i
,
k
in
enumerate
(
range
(
1
,
7
,
2
)):
for
i
,
k
in
enumerate
(
range
(
1
,
7
,
2
)):
...
@@ -114,7 +114,7 @@ def py_enumerate_continue(*t):
...
@@ -114,7 +114,7 @@ def py_enumerate_continue(*t):
continue
continue
print
u"::"
,
i
,
k
print
u"::"
,
i
,
k
# T44
1
@cython.test_fail_if_path_exists("//SimpleCallNode//NameNode[@name = 'enumerate']")
# T44
2
@cython.test_fail_if_path_exists("//SimpleCallNode//NameNode[@name = 'enumerate']")
def
empty_c_enumerate
():
def
empty_c_enumerate
():
cdef
int
i
=
55
,
k
=
99
cdef
int
i
=
55
,
k
=
99
for
i
,
k
in
enumerate
(
range
(
0
)):
for
i
,
k
in
enumerate
(
range
(
0
)):
...
@@ -131,13 +131,13 @@ def multi_enumerate():
...
@@ -131,13 +131,13 @@ def multi_enumerate():
for
a
,(
b
,(
c
,
d
))
in
enumerate
(
enumerate
(
enumerate
(
range
(
1
,
5
)))):
for
a
,(
b
,(
c
,
d
))
in
enumerate
(
enumerate
(
enumerate
(
range
(
1
,
5
)))):
print
a
,
b
,
c
,
d
print
a
,
b
,
c
,
d
# T44
1
@cython.test_fail_if_path_exists("//SimpleCallNode")
# T44
2
@cython.test_fail_if_path_exists("//SimpleCallNode")
def
multi_c_enumerate
():
def
multi_c_enumerate
():
cdef
int
a
,
b
,
c
,
d
cdef
int
a
,
b
,
c
,
d
for
a
,(
b
,(
c
,
d
))
in
enumerate
(
enumerate
(
enumerate
(
range
(
1
,
5
)))):
for
a
,(
b
,(
c
,
d
))
in
enumerate
(
enumerate
(
enumerate
(
range
(
1
,
5
)))):
print
a
,
b
,
c
,
d
print
a
,
b
,
c
,
d
# T44
1
# T44
2 @cython.test_fail_if_path_exists("//SimpleCallNode")
def
convert_target_enumerate
(
L
):
def
convert_target_enumerate
(
L
):
"""
"""
>>> convert_target_enumerate([2,3,5])
>>> convert_target_enumerate([2,3,5])
...
...
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