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.yue5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/inputs/macro.yue b/spec/inputs/macro.yue
index 3d4fb10..d5197da 100644
--- a/spec/inputs/macro.yue
+++ b/spec/inputs/macro.yue
@@ -39,9 +39,8 @@ print $WindowFlag(
39) 39)
40 40
41macro NumAndStr = (num, str) -> 41macro NumAndStr = (num, str) ->
42 import "yue" 42 unless $is_ast(Num, num) and $is_ast SingleString, str
43 unless yue.is_ast("Num", "123") 43 error "got unexpected token"
44 error "unmatched tokens got"
45 "[#{num}, #{str}]" 44 "[#{num}, #{str}]"
46 45
47print $NumAndStr 123, 'xyz' 46print $NumAndStr 123, 'xyz'