diff options
| author | OpportunityLiu <[email protected]> | 2019-07-26 20:37:21 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-28 14:45:01 +0800 |
| commit | ef1b33a90b2fcb87c070de07d22ed89d830fcbd0 (patch) | |
| tree | fcb3c454f822aac7c36aab8f7bd5e14b62e6ad82 /tests/modules/string/serialize | |
| parent | ab8e62f99a161981fbb485aaa895e429b8c31144 (diff) | |
fix keyword as key
Diffstat (limited to 'tests/modules/string/serialize')
| -rw-r--r-- | tests/modules/string/serialize/test.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modules/string/serialize/test.lua b/tests/modules/string/serialize/test.lua index 1fcb62f66..3c21d4410 100644 --- a/tests/modules/string/serialize/test.lua +++ b/tests/modules/string/serialize/test.lua @@ -41,6 +41,8 @@ end function test_table(t) t:are_equal(roundtrip({}), {}) + t:are_equal(roundtrip({{},{1}}), {{},{1}}) + t:are_equal(roundtrip({["true"] = true}), {["true"] = true}) t:are_equal(roundtrip({1, 2, 3}), {1, 2, 3}) t:are_equal(roundtrip({1, "", 3}), {1, "", 3}) t:are_equal(roundtrip({{1, 2, 3, nil, 4}}), {{1, 2, 3, nil, 4}}) |
