aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-08-09 08:56:58 +0800
committerLi Jin <dragon-fly@qq.com>2023-08-09 08:56:58 +0800
commit33260af2175004347a3b9345b67727e596c6fffd (patch)
tree859c678fe4ffa66d0fd01b60dbb10901af5299ed /spec/inputs
parent60774555568dbc64866d088cb51e45f9434c0f89 (diff)
downloadyuescript-33260af2175004347a3b9345b67727e596c6fffd.tar.gz
yuescript-33260af2175004347a3b9345b67727e596c6fffd.tar.bz2
yuescript-33260af2175004347a3b9345b67727e596c6fffd.zip
add more tests.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/vararg.yue18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/inputs/vararg.yue b/spec/inputs/vararg.yue
index 466a4a6..91d0b16 100644
--- a/spec/inputs/vararg.yue
+++ b/spec/inputs/vararg.yue
@@ -74,5 +74,23 @@ join = (...) ->
74 a, ... = 1, 2 unless true 74 a, ... = 1, 2 unless true
75 print a, select '#', ... 75 print a, select '#', ...
76 76
77 do
78 ... = switch x when 1
79 with tb
80 .x = 123
81 else
82 tb2
83 print ...
84
85 do
86 ... = 1, 2, if cond
87 3, 4, 5
88 print ...
89
90 do
91 tb, ... =
92 name: "abc"
93 value: 123
94 print ...
77 nil 95 nil
78 96