Skip to content

Commit bd7fb87

Browse files
committed
Test that transform macro can return empty array
1 parent 91819db commit bd7fb87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test.ls

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,11 @@ test "transform-macro can return null" ->
10321032
esl "(+ 1 2)" transform-macros : [ wrapper ]
10331033
.. `@equals` ""
10341034
1035+
test "transform-macro can return empty array" ->
1036+
wrapper = -> []
1037+
esl "(+ 1 2)" transform-macros : [ wrapper ]
1038+
.. `@equals` ""
1039+
10351040
test "transform-macro can receive arguments" ->
10361041
wrapper = (...args) ->
10371042
[ { atom : "hi" } ].concat args

0 commit comments

Comments
 (0)