summaryrefslogtreecommitdiff
path: root/tests/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test.lua')
-rwxr-xr-xtests/test.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 4bb62be..bfa4f66 100755
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -43,7 +43,7 @@ local function gen_utf16_escaped()
43 end 43 end
44 end 44 end
45 table.insert(utf16_escaped, '"') 45 table.insert(utf16_escaped, '"')
46 46
47 return table.concat(utf16_escaped) 47 return table.concat(utf16_escaped)
48end 48end
49 49
@@ -120,10 +120,10 @@ local encode_table_tests = {
120 true, { '[null,null,"sparse test"]' } }, 120 true, { '[null,null,"sparse test"]' } },
121 121
122 { json.encode, { { [1] = "one", [4] = "sparse test" } }, 122 { json.encode, { { [1] = "one", [4] = "sparse test" } },
123 true, { '["one",null,null,"sparse test"]' } }, 123 true, { '["one",null,null,"sparse test"]' } },
124 124
125 { json.encode, { { [1] = "one", [5] = "sparse test" } }, 125 { json.encode, { { [1] = "one", [5] = "sparse test" } },
126 true, { '{"1":"one","5":"sparse test"}' } }, 126 true, { '{"1":"one","5":"sparse test"}' } },
127 127
128 { json.encode, { nested5 }, true, { '[[[[["nested"]]]]]' } }, 128 { json.encode, { nested5 }, true, { '[[[[["nested"]]]]]' } },
129 { json.encode, { { nested5 } }, 129 { json.encode, { { nested5 } },