Commit ea3993e2 authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent 2721708d
......@@ -57,6 +57,13 @@ def list_comp():
assert x == 'abc' # don't leak in Py3 code
return result
def list_comp_unknown_type(l):
"""
>>> list_comp_unknown_type(range(5))
[0, 4, 8]
"""
return [x*2 for x in l if x % 2 == 0]
def set_comp():
"""
>>> sorted(set_comp())
......
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