From ef1b33a90b2fcb87c070de07d22ed89d830fcbd0 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Fri, 26 Jul 2019 20:37:21 +0800 Subject: fix keyword as key --- tests/modules/string/serialize/test.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/modules/string') 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}}) -- cgit v1.3.1