aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/in_expression.yue1
-rw-r--r--spec/inputs/unicode/in_expression.yue39
2 files changed, 39 insertions, 1 deletions
diff --git a/spec/inputs/in_expression.yue b/spec/inputs/in_expression.yue
index 7ee0816..0b2a87a 100644
--- a/spec/inputs/in_expression.yue
+++ b/spec/inputs/in_expression.yue
@@ -1,5 +1,4 @@
1-a^2 in {1, 2, 3} |> f 1-a^2 in {1, 2, 3} |> f
2-a^2 in [1, 2, 3] |> f
3 2
4has = "foo" in { "bar", "foo" } 3has = "foo" in { "bar", "foo" }
5 4
diff --git a/spec/inputs/unicode/in_expression.yue b/spec/inputs/unicode/in_expression.yue
index e068cbf..4a87099 100644
--- a/spec/inputs/unicode/in_expression.yue
+++ b/spec/inputs/unicode/in_expression.yue
@@ -29,5 +29,44 @@ do
29 检查 -> return 对象x in 数组tb 29 检查 -> return 对象x in 数组tb
30 检查 -> 对象x not in 数组tb 30 检查 -> 对象x not in 数组tb
31 31
32do
33 函数1 = ->
34 变量a = 2
35 变量a in [
36 1
37 2
38 3
39 4
40 ]
41 函数2 = ->
42 变量a not in [
43 1
44 2
45 3
46 4
47 ]
48 函数3 = ->
49 变量a = 2
50 变量a in { 变量b, 变量c, 变量d
51 变量e, 变量f
52 变量g
53 }
54 函数4 = ->
55 变量a = 2
56 变量b = a in [ 1, 2
57 3, 4
58 ]
59 函数5 = ->
60 a变量 = 2
61 return a变量 in [ 1, 2
62 3, 4
63 ]
64 函数6 = ->
65 b变量 = a变量 not in {
66 1
67 2
68 字段x: 3
69 }
70
32nil 71nil
33 72