aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-07-14 02:48:49 +0800
committerLi Jin <dragon-fly@qq.com>2022-07-14 02:48:49 +0800
commit3159a45de9e691ad758dcbc933446f61b7ae1940 (patch)
treeb695f8356986accc84c82ece09eb427a2b1db230 /spec/inputs
parenta1d341085eed96d567329a30f2cf57c95fe6f071 (diff)
downloadyuescript-3159a45de9e691ad758dcbc933446f61b7ae1940.tar.gz
yuescript-3159a45de9e691ad758dcbc933446f61b7ae1940.tar.bz2
yuescript-3159a45de9e691ad758dcbc933446f61b7ae1940.zip
fix table matching issue and update doc.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/switch.yue6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/inputs/switch.yue b/spec/inputs/switch.yue
index 36f9be6..04bb02e 100644
--- a/spec/inputs/switch.yue
+++ b/spec/inputs/switch.yue
@@ -139,10 +139,10 @@ do
139 "#{a + b}" 139 "#{a + b}"
140 when 1, 2, 3, 4, 5 140 when 1, 2, 3, 4, 5
141 "number 1 - 5" 141 "number 1 - 5"
142 when {:alwaysMatch = "fallback"} 142 when {:matchAnyTable = "fallback"}
143 alwaysMatch 143 matchAnyTable
144 else 144 else
145 "should not reach here" 145 "should not reach here unless it is not a table"
146 146
147nil 147nil
148 148