hy/tests/lang/test_map.py

16 lines
345 B
Python
Raw Normal View History

2012-12-17 03:09:11 +01:00
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"
}
}]
]