Q'plah!
This commit is contained in:
parent
0b3628bcc3
commit
dbd9f0bbf8
@ -27,10 +27,7 @@ _hy_macros = {}
|
|||||||
def macro(name):
|
def macro(name):
|
||||||
def _(fn):
|
def _(fn):
|
||||||
_hy_macros[name] = fn
|
_hy_macros[name] = fn
|
||||||
|
return fn
|
||||||
def __(*args, **kwargs):
|
|
||||||
return fn(*args, **kwargs)
|
|
||||||
return __
|
|
||||||
return _
|
return _
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,3 +31,6 @@ def test_preprocessor_expression():
|
|||||||
assert type(obj[0]) == HyList
|
assert type(obj[0]) == HyList
|
||||||
|
|
||||||
assert obj[0] == HyList([HyString("one"), HyString("two")])
|
assert obj[0] == HyList([HyString("one"), HyString("two")])
|
||||||
|
|
||||||
|
obj = HyList([HyString("one"), HyString("two")])
|
||||||
|
assert obj == process(obj)
|
||||||
|
Loading…
Reference in New Issue
Block a user