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-01 04:37:23 +01:00
|
|
|
assert objs == [HyExpression([HySymbol("foo"), HySymbol("bar")])]
|