This commit is contained in:
Paul R. Tagliamonte 2013-03-07 23:04:20 -05:00
parent 0b3628bcc3
commit dbd9f0bbf8
2 changed files with 4 additions and 4 deletions

View File

@ -27,10 +27,7 @@ _hy_macros = {}
def macro(name):
def _(fn):
_hy_macros[name] = fn
def __(*args, **kwargs):
return fn(*args, **kwargs)
return __
return fn
return _

View File

@ -31,3 +31,6 @@ def test_preprocessor_expression():
assert type(obj[0]) == HyList
assert obj[0] == HyList([HyString("one"), HyString("two")])
obj = HyList([HyString("one"), HyString("two")])
assert obj == process(obj)