added new non-working array iteration test, commented out for now
authorStefan Behnel <scoder@users.berlios.de>
Wed, 8 Sep 2010 17:48:08 +0000 (19:48 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 8 Sep 2010 17:48:08 +0000 (19:48 +0200)
tests/run/carray_slicing.pyx

index 94ec978587fd415a7f1a27b7b93c1306666eaa50..ac576501775e99a66244f300ba9fbe1f439fb76e 100644 (file)
@@ -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")