diff options
| author | ruki <[email protected]> | 2022-03-02 23:29:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-03-02 23:29:35 +0800 |
| commit | f6a48a7481bffa3f8b97ac9cd509eb7f4c202559 (patch) | |
| tree | 77e3c441cb5d344e6037300a35ece91fa0c5f6a0 /tests/modules/table/test.lua | |
| parent | aeb97fe6d7d7385fddb494dc4f4a892993e03876 (diff) | |
add wraplock
Diffstat (limited to 'tests/modules/table/test.lua')
| -rw-r--r-- | tests/modules/table/test.lua | 4 |
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 |
