diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-04-02 15:26:50 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-04-02 15:26:50 +0800 |
| commit | d4e8b147694f35ac37c48dbfdd4b179c892beb01 (patch) | |
| tree | 17635d8bdbc7e58c0b604039a06a045fc14911be /spec/inputs/test | |
| parent | bc1a80badfb734fb9695ee4831e25cb68b8e7765 (diff) | |
| download | yuescript-d4e8b147694f35ac37c48dbfdd4b179c892beb01.tar.gz yuescript-d4e8b147694f35ac37c48dbfdd4b179c892beb01.tar.bz2 yuescript-d4e8b147694f35ac37c48dbfdd4b179c892beb01.zip | |
Diffstat (limited to 'spec/inputs/test')
| -rw-r--r-- | spec/inputs/test/in_expression_spec.yue | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/spec/inputs/test/in_expression_spec.yue b/spec/inputs/test/in_expression_spec.yue index d9e3aec..840bdc4 100644 --- a/spec/inputs/test/in_expression_spec.yue +++ b/spec/inputs/test/in_expression_spec.yue | |||
| @@ -72,11 +72,6 @@ describe "in expression", -> | |||
| 72 | assert.is_true 2 in get_items! | 72 | assert.is_true 2 in get_items! |
| 73 | assert.is_false 5 in get_items! | 73 | assert.is_false 5 in get_items! |
| 74 | 74 | ||
| 75 | it "should handle nil in table", -> | ||
| 76 | items = {1, nil, 3} | ||
| 77 | assert.is_true nil in items | ||
| 78 | assert.is_true 1 in items | ||
| 79 | |||
| 80 | it "should work with string keys", -> | 75 | it "should work with string keys", -> |
| 81 | obj = ["name", "value"] | 76 | obj = ["name", "value"] |
| 82 | assert.is_true "name" in obj | 77 | assert.is_true "name" in obj |
