Commit 57e7a826 authored by Stefan Behnel's avatar Stefan Behnel

added new non-working array iteration test, commented out for now

parent abe21cc1
...@@ -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")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment