diff options
author | Li Jin <dragon-fly@qq.com> | 2024-02-05 11:24:41 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2024-02-05 11:24:41 +0800 |
commit | 018b9408f167067c596fc23781bc945edb9f4d89 (patch) | |
tree | 3e2aeff3b1750d6d4ad997e561da055d1ce6e4be /spec/inputs/unicode/in_expression.yue | |
parent | ef0ff9c4c523980d71e49d65e8db57d670daf85c (diff) | |
download | yuescript-0.21.7.tar.gz yuescript-0.21.7.tar.bz2 yuescript-0.21.7.zip |
fix in-expression format issue.v0.21.7
Diffstat (limited to 'spec/inputs/unicode/in_expression.yue')
-rw-r--r-- | spec/inputs/unicode/in_expression.yue | 39 |
1 files changed, 39 insertions, 0 deletions
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 | ||
32 | do | ||
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 | |||
32 | nil | 71 | nil |
33 | 72 | ||