aboutsummaryrefslogtreecommitdiff
path: root/tests/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test.lua')
-rwxr-xr-xtests/test.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test.lua b/tests/test.lua
index c96dd3d..3da8676 100755
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -293,7 +293,7 @@ local cjson_tests = {
293 true, { '["one",null,null,"sparse test"]' } }, 293 true, { '["one",null,null,"sparse test"]' } },
294 { "Encode sparse array as object", 294 { "Encode sparse array as object",
295 json.encode, { { [1] = "one", [5] = "sparse test" } }, 295 json.encode, { { [1] = "one", [5] = "sparse test" } },
296 true, { '{"1":"one","5":"sparse test"}' } }, 296 true, { '{"5":"sparse test","1":"one"}' } },
297 { "Encode table with numeric string key as object", 297 { "Encode table with numeric string key as object",
298 json.encode, { { ["2"] = "numeric string key test" } }, 298 json.encode, { { ["2"] = "numeric string key test" } },
299 true, { '{"2":"numeric string key test"}' } }, 299 true, { '{"2":"numeric string key test"}' } },