From: Stefan Behnel Date: Wed, 8 Sep 2010 17:48:08 +0000 (+0200) Subject: added new non-working array iteration test, commented out for now X-Git-Tag: 0.14.alpha0~341 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=57e7a826dd04868f28693c053e302e454efffb3c;p=cython.git added new non-working array iteration test, commented out for now --- 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")