summaryrefslogtreecommitdiff
path: root/tests/modules/string/serialize/test.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-25 15:25:38 +0800
committerOpportunityLiu <[email protected]>2019-07-25 15:25:40 +0800
commit95169f0ec740f0466dfab97424e3c72460764f17 (patch)
treeff13b4eef4330f6bbecde87038aa8eb97bdbe4c3 /tests/modules/string/serialize/test.lua
parent9774a017a3baadd3caf3b442f4a22a0bf151d4c9 (diff)
add some tests
Diffstat (limited to 'tests/modules/string/serialize/test.lua')
-rw-r--r--tests/modules/string/serialize/test.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/modules/string/serialize/test.lua b/tests/modules/string/serialize/test.lua
index 8d13f6fee..1e1484f98 100644
--- a/tests/modules/string/serialize/test.lua
+++ b/tests/modules/string/serialize/test.lua
@@ -26,7 +26,8 @@ function test_table(t)
t:are_equal(roundtrip({}), {})
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}})
+ t:are_equal(roundtrip({{1, 2, 3, nil, 4}}), {{1, 2, 3, nil, 4}})
+ t:are_equal(roundtrip({{a=1, b=2, c=3, nil, 4}}), {{a=1, b=2, c=3, nil, 4}})
end
function test_function(t)