aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/unicode/in_expression.yue
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/unicode/in_expression.yue')
-rw-r--r--spec/inputs/unicode/in_expression.yue21
1 files changed, 1 insertions, 20 deletions
diff --git a/spec/inputs/unicode/in_expression.yue b/spec/inputs/unicode/in_expression.yue
index efaca47..e068cbf 100644
--- a/spec/inputs/unicode/in_expression.yue
+++ b/spec/inputs/unicode/in_expression.yue
@@ -1,29 +1,10 @@
1-变量a^2 in {1, 2, 3} |> 函数 1-变量a^2 in {1, 2, 3} |> 函数
2 2
3变量a, 变量b = 函数x(...) not in [1, 3], 2
4
5变量d = (对象.字段x.字段y ...) not in [1, 3]
6
7在的 = "东" in { "东", "西" } 3在的 = "东" in { "东", "西" }
8 4
9if 变量a in {1} and 变量b in {2, 3, 4} or 变量c in [1, 10] 5if 变量a in {1} and 变量b in {2, 3, 4}
10 打印 变量a, 变量b, 变量c 6 打印 变量a, 变量b, 变量c
11 7
12switch 值
13 when 1, 2, 3
14 打印 "1, 2, 3"
15
16 when not in (0, 100]
17 打印 "非 (0 < 值 <= 100)"
18
19 when in [200, 300)
20 打印 "200 <= 值 < 300)"
21
22 when not in {333, 444, 555}
23 打印 "非 333, 444 或 555"
24
25do return 变量y not in (开始, 结束)
26
27do 8do
28 存在 = 元素 in 表 9 存在 = 元素 in 表
29 检查 元素 in 表 10 检查 元素 in 表