Commit e15eb561 authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent 196cb6dd
......@@ -46,6 +46,15 @@ __doc__ = u"""
>>> q(1)
Traceback (most recent call last):
TypeError: 'NoneType' object is not iterable
>>> l = [1,2,3,4]
>>> l2 = [l[1:],l[:-1],l]
>>> 2 in l in l2
True
>>> r(2)
1
>>> s(2)
1
"""
def f(a,b):
......@@ -87,3 +96,13 @@ def q(a):
cdef dict d = None
cdef int result = a in d # should fail with a TypeError
return result
def r(a):
l = [1,2,3,4]
l2 = [l[1:],l[:-1],l]
cdef int result = a in l in l2
return result
def s(a):
cdef int result = a in [1,2,3,4] in [[1,2,3],[2,3,4],[1,2,3,4]]
return result
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