Commit bb18427c authored by Stefan Behnel's avatar Stefan Behnel

added test case for d[x,]

--HG--
extra : transplant_source : %CFQ%F5rF%11j%FE0%F7%C4j%0A%0A%2B%E2%3AF%89%E9
parent 24cdbff2
......@@ -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