From 57e7a826dd04868f28693c053e302e454efffb3c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 8 Sep 2010 19:48:08 +0200 Subject: [PATCH] added new non-working array iteration test, commented out for now --- tests/run/carray_slicing.pyx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/run/carray_slicing.pyx b/tests/run/carray_slicing.pyx index 94ec9785..ac576501 100644 --- a/tests/run/carray_slicing.pyx +++ b/tests/run/carray_slicing.pyx @@ -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[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", "//ForFromStatNode//IndexNode") @cython.test_fail_if_path_exists("//ForInStatNode") -- 2.26.2