Skip to content

Commit

Permalink
Add UL4 getitem tests for dictionaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
doerwalter committed Feb 11, 2022
1 parent 8df94ab commit 45066ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_ul4.py
Original file line number Diff line number Diff line change
Expand Up @@ -1919,6 +1919,9 @@ def test_getitem(T):
with raises(indexmessage):
T("<?print x[-5]?>").renders(x=list("gurk"))

assert "z" == T("<?print x['y']?>").renders(x={"y": "z"})
assert "z" == T("<?print x[None]?>").renders(x={None: "z"})


@pytest.mark.ul4
def test_setitem(T):
Expand Down

0 comments on commit 45066ff

Please sign in to comment.