diff options
Diffstat (limited to 'spec/inputs/macro.yue')
-rw-r--r-- | spec/inputs/macro.yue | 5 |
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 | ||
41 | macro NumAndStr = (num, str) -> | 41 | macro 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 | ||
47 | print $NumAndStr 123, 'xyz' | 46 | print $NumAndStr 123, 'xyz' |