diff options
author | Li Jin <dragon-fly@qq.com> | 2023-11-09 18:30:16 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-11-09 18:30:16 +0800 |
commit | 0ca14d8e6c37f5d1360178034851f36c636a7a43 (patch) | |
tree | 415c0b6083054fe837d0afb458bdd62dac778b84 /spec/inputs | |
parent | 5ad0f4daa8171460dc71332669c365bb8e07dab0 (diff) | |
download | yuescript-0.20.5.tar.gz yuescript-0.20.5.tar.bz2 yuescript-0.20.5.zip |
fix a missing case for condition chaining.v0.20.5
Diffstat (limited to '')
-rw-r--r-- | spec/inputs/cond.yue | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/inputs/cond.yue b/spec/inputs/cond.yue index f5f42a8..5bc6c9b 100644 --- a/spec/inputs/cond.yue +++ b/spec/inputs/cond.yue | |||
@@ -247,6 +247,7 @@ do | |||
247 | a = x and y or v(1) < v(2) < v(3) and b < v(4) < v(5) < v(6) | 247 | a = x and y or v(1) < v(2) < v(3) and b < v(4) < v(5) < v(6) |
248 | a = v(1) < v(2) < v(3) and b < v(4) < v(5) < v(6) or x and y | 248 | a = v(1) < v(2) < v(3) and b < v(4) < v(5) < v(6) or x and y |
249 | a = x and y or v(1) < v(2) < v(3) and b < v(4) < v(5) < v(6) or w and z | 249 | a = x and y or v(1) < v(2) < v(3) and b < v(4) < v(5) < v(6) or w and z |
250 | a = 1 < 2 == v1 > 3 | ||
250 | 251 | ||
251 | local v1, v2, v3, v4, v5, v6 | 252 | local v1, v2, v3, v4, v5, v6 |
252 | a = v1 < v2 < v3 < v4 | 253 | a = v1 < v2 < v3 < v4 |
@@ -258,6 +259,7 @@ do | |||
258 | a = x and y or v1 < v2 < v3 and b < v4 < v5 < v6 | 259 | a = x and y or v1 < v2 < v3 and b < v4 < v5 < v6 |
259 | a = v1 < v2 < v3 and b < v4 < v5 < v6 or x and y | 260 | a = v1 < v2 < v3 and b < v4 < v5 < v6 or x and y |
260 | a = x and y or v1 < v2 < v3 and b < v4 < v5 < v6 or w and z | 261 | a = x and y or v1 < v2 < v3 and b < v4 < v5 < v6 or w and z |
262 | a = 1 < 2 == v1 > 3 | ||
261 | 263 | ||
262 | nil | 264 | nil |
263 | 265 | ||