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
57e7a826
Commit
57e7a826
authored
Sep 08, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added new non-working array iteration test, commented out for now
parent
abe21cc1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
tests/run/carray_slicing.pyx
tests/run/carray_slicing.pyx
+14
-0
No files found.
tests/run/carray_slicing.pyx
View file @
57e7a826
...
@@ -192,6 +192,20 @@ def slice_doublptr_for_loop_c():
...
@@ -192,6 +192,20 @@ def slice_doublptr_for_loop_c():
print
[
d
for
d
in
cdoubles_ptr
[
1
:
5
]
]
print
[
d
for
d
in
cdoubles_ptr
[
1
:
5
]
]
print
[
d
for
d
in
cdoubles_ptr
[
4
:
6
]
]
print
[
d
for
d
in
cdoubles_ptr
[
4
:
6
]
]
## @cython.test_assert_path_exists("//ForFromStatNode",
## "//ForFromStatNode//IndexNode")
## @cython.test_fail_if_path_exists("//ForInStatNode")
## def slice_doublptr_for_loop_c_step():
## """
## >>> slice_doublptr_for_loop_c_step()
## """
## cdef double d
## print [ d for d in cdoubles_ptr[:3:1] ]
## print [ d for d in cdoubles_ptr[5:1:-1] ]
## print [ d for d in cdoubles_ptr[:2:-2] ]
## print [ d for d in cdoubles_ptr[4:6:2] ]
## print [ d for d in cdoubles_ptr[4:6:-2] ]
@
cython
.
test_assert_path_exists
(
"//ForFromStatNode"
,
@
cython
.
test_assert_path_exists
(
"//ForFromStatNode"
,
"//ForFromStatNode//IndexNode"
)
"//ForFromStatNode//IndexNode"
)
@
cython
.
test_fail_if_path_exists
(
"//ForInStatNode"
)
@
cython
.
test_fail_if_path_exists
(
"//ForInStatNode"
)
...
...
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