aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/macro.yue
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/macro.yue')
-rw-r--r--spec/inputs/macro.yue8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/inputs/macro.yue b/spec/inputs/macro.yue
index a2e1046..3d4fb10 100644
--- a/spec/inputs/macro.yue
+++ b/spec/inputs/macro.yue
@@ -38,6 +38,14 @@ print $WindowFlag(
38 NoScrollbar 38 NoScrollbar
39) 39)
40 40
41macro NumAndStr = (num, str) ->
42 import "yue"
43 unless yue.is_ast("Num", "123")
44 error "unmatched tokens got"
45 "[#{num}, #{str}]"
46
47print $NumAndStr 123, 'xyz'
48
41$asserts item == nil 49$asserts item == nil
42 50
43$myconfig false 51$myconfig false