Commit 212c9926 authored by Stefan Behnel's avatar Stefan Behnel

added test case for d[x,]

parent 22b7ce25
......@@ -30,6 +30,14 @@ def test(dict d, index):
"""
return d[index]
def getitem_tuple(dict d, index):
"""
>>> d = {1: 1, (1,): 2}
>>> getitem_tuple(d, 1)
(1, 2)
"""
return d[index], d[index,]
def getitem_in_condition(dict d, key, expected_result):
"""
>>> d = dict(a=1, 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