From 780c73d0d57cd57907b8afe54450c96fdd61acca Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 19 Dec 2008 20:18:44 +0100 Subject: [PATCH] extended for-loop test case --- tests/run/r_forloop.pyx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/run/r_forloop.pyx b/tests/run/r_forloop.pyx index 463d6477..d8fe8602 100644 --- a/tests/run/r_forloop.pyx +++ b/tests/run/r_forloop.pyx @@ -15,6 +15,11 @@ __doc__ = u""" >>> go_c_int(1,5) Spam! Spam! + >>> go_c_enumerate() + True + True + True + True >>> go_c_all() Spam! Spam! @@ -77,6 +82,11 @@ def go_c(): for i in range(4): print u"Spam!" +def go_c_enumerate(): + cdef int i,k + for i,k in enumerate(range(4)): + print i == k + def go_c_int(int a, int b): cdef int i for i in range(a,b,2): -- 2.26.2