diff --git a/tests/lex/test_lex.py b/tests/lex/test_lex.py index b20ef22..e7cca84 100644 --- a/tests/lex/test_lex.py +++ b/tests/lex/test_lex.py @@ -126,6 +126,11 @@ def test_dicts(): "bar": "baz" })] + objs = tokenize("(bar {foo bar bar baz})") + assert objs == [HyExpression([HySymbol("bar"), + HyDict({"foo": "bar", + "bar": "baz"})])] + def test_nospace(): """ Ensure we can tokenize without spaces if we have to """