hy/tests/lang/test_map.py
2012-12-16 21:09:11 -05:00

16 lines
345 B
Python

from hy.lex.tokenize import tokenize
def test_map_lex():
assert tokenize('(def {"foo" "bar"})') == [['def', {'foo': 'bar'}]]
def test_map_lex():
assert tokenize('(def {"foo" "bar" "baz" {"one" "two"}})') == [
['def', {
'foo': 'bar',
'baz': {
"one": "two"
}
}]
]