diff options
| author | Li Jin <dragon-fly@qq.com> | 2023-07-20 18:25:10 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2023-07-20 18:25:10 +0800 |
| commit | fcb480618f162817572947cfed96b1ba0d6c5a44 (patch) | |
| tree | a7fb68bc263730a665d49648b01771742bb8dc24 /spec/inputs | |
| parent | 2faf55a8217690988bc2cab7cc65541dc2215dc1 (diff) | |
| download | yuescript-fcb480618f162817572947cfed96b1ba0d6c5a44.tar.gz yuescript-fcb480618f162817572947cfed96b1ba0d6c5a44.tar.bz2 yuescript-fcb480618f162817572947cfed96b1ba0d6c5a44.zip | |
fix wrong codes generation for in-expression.v0.17.8
Diffstat (limited to 'spec/inputs')
| -rw-r--r-- | spec/inputs/in_expression.yue | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/inputs/in_expression.yue b/spec/inputs/in_expression.yue index 4080016..6e923e1 100644 --- a/spec/inputs/in_expression.yue +++ b/spec/inputs/in_expression.yue | |||
| @@ -39,7 +39,14 @@ do | |||
| 39 | not_exist = item not in list | 39 | not_exist = item not in list |
| 40 | check item in list | 40 | check item in list |
| 41 | check item in {1, 2, 3} | 41 | check item in {1, 2, 3} |
| 42 | check item in {[1]: 1, [2]: 2, [3]: 3} | 42 | check item(...) in {[1]: 1, [2]: 2, [3]: 3} |
| 43 | |||
| 44 | do | ||
| 45 | check -> x in tb | ||
| 46 | check -> x not in tb | ||
| 47 | local x, tb | ||
| 48 | check -> return x in tb | ||
| 49 | check -> x not in tb | ||
| 43 | 50 | ||
| 44 | nil | 51 | nil |
| 45 | 52 | ||
