aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/switch.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-11-02 12:27:27 +0800
committerLi Jin <dragon-fly@qq.com>2023-11-02 12:27:27 +0800
commit5ad0f4daa8171460dc71332669c365bb8e07dab0 (patch)
treeda57ecdabf5fa54c324c023ac22c53041aaff143 /spec/inputs/switch.yue
parent2263cca3687bb5c6b9c51f42d59d2249c18941a0 (diff)
downloadyuescript-0.20.4.tar.gz
yuescript-0.20.4.tar.bz2
yuescript-0.20.4.zip
fix table matching syntax in switch statement with list table.v0.20.4
Diffstat (limited to 'spec/inputs/switch.yue')
-rw-r--r--spec/inputs/switch.yue6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/inputs/switch.yue b/spec/inputs/switch.yue
index cb1eb31..49d47f3 100644
--- a/spec/inputs/switch.yue
+++ b/spec/inputs/switch.yue
@@ -159,5 +159,11 @@ do
159 when {x: <>: mt} 159 when {x: <>: mt}
160 print mt 160 print mt
161 161
162do
163 switch tb
164 when [ [item,],]
165 print item
166 when [a = 1, b = "abc"]
167 print a, b
162nil 168nil
163 169