hy/tests/test_lex.py

10 lines
259 B
Python
Raw Normal View History

2013-03-01 04:27:20 +01:00
from hy.lex import tokenize
2013-03-01 04:37:23 +01:00
from hy.models.expression import HyExpression
from hy.models.symbol import HySymbol
2013-03-01 04:27:20 +01:00
def test_lex_expression():
objs = tokenize("(foo bar)")
2013-03-03 00:03:59 +01:00
print objs
2013-03-01 04:37:23 +01:00
assert objs == [HyExpression([HySymbol("foo"), HySymbol("bar")])]