aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/test
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2026-04-02 15:26:50 +0800
committerLi Jin <dragon-fly@qq.com>2026-04-02 15:26:50 +0800
commitd4e8b147694f35ac37c48dbfdd4b179c892beb01 (patch)
tree17635d8bdbc7e58c0b604039a06a045fc14911be /spec/inputs/test
parentbc1a80badfb734fb9695ee4831e25cb68b8e7765 (diff)
downloadyuescript-main.tar.gz
yuescript-main.tar.bz2
yuescript-main.zip
Lua 5.5 no longer put nil in array part of table.HEADv0.33.10main
Diffstat (limited to 'spec/inputs/test')
-rw-r--r--spec/inputs/test/in_expression_spec.yue5
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