Commit 780c73d0 authored by Stefan Behnel's avatar Stefan Behnel

extended for-loop test case

parent f5d21c9c
...@@ -15,6 +15,11 @@ __doc__ = u""" ...@@ -15,6 +15,11 @@ __doc__ = u"""
>>> go_c_int(1,5) >>> go_c_int(1,5)
Spam! Spam!
Spam! Spam!
>>> go_c_enumerate()
True
True
True
True
>>> go_c_all() >>> go_c_all()
Spam! Spam!
Spam! Spam!
...@@ -77,6 +82,11 @@ def go_c(): ...@@ -77,6 +82,11 @@ def go_c():
for i in range(4): for i in range(4):
print u"Spam!" 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): def go_c_int(int a, int b):
cdef int i cdef int i
for i in range(a,b,2): for i in range(a,b,2):
......
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