summaryrefslogtreecommitdiff
path: root/tests/modules/table/test.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-02 23:29:35 +0800
committerruki <[email protected]>2022-03-02 23:29:35 +0800
commitf6a48a7481bffa3f8b97ac9cd509eb7f4c202559 (patch)
tree77e3c441cb5d344e6037300a35ece91fa0c5f6a0 /tests/modules/table/test.lua
parentaeb97fe6d7d7385fddb494dc4f4a892993e03876 (diff)
add wraplock
Diffstat (limited to 'tests/modules/table/test.lua')
-rw-r--r--tests/modules/table/test.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modules/table/test.lua b/tests/modules/table/test.lua
index 5133e778f..569f18e50 100644
--- a/tests/modules/table/test.lua
+++ b/tests/modules/table/test.lua
@@ -16,7 +16,7 @@ function test_wrap(t)
t:are_equal(table.wrap({}), {})
t:are_equal(table.wrap({1}), {1})
t:are_equal(table.wrap({{}}), {{}})
- local a = {1, __object__ = true}
+ local a = table.wraplock({1})
t:are_equal(table.wrap({a}), {a})
end
@@ -26,6 +26,6 @@ function test_unwrap(t)
t:are_equal(table.unwrap({}), {})
t:are_equal(table.unwrap({1}), 1)
t:are_equal(table.unwrap({{}}), {})
- local a = {1, __object__ = true}
+ local a = table.wraplock({1})
t:are_equal(table.unwrap(a), a)
end