Commit 9953cc9a authored by Stefan Behnel's avatar Stefan Behnel

add test case

parent a53a17ea
def func(**kwargs):
def values_in_expression(**kwargs):
"""
>>> sorted(func(a=3, b=4))
>>> sorted(values_in_expression(a=3, b=4))
[1, 2, 3, 4]
"""
return [ arg for arg in [1,2] + kwargs.values() ]
cdef dict make_dict(d):
return dict(d)
def values_of_expression(**kwargs):
"""
>>> sorted(values_of_expression(a=3, b=4))
[3, 4]
"""
return [ arg for arg in make_dict(kwargs).values() ]
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