diff options
-rwxr-xr-x | tests/test.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test.lua b/tests/test.lua index 424a630..43f48ad 100755 --- a/tests/test.lua +++ b/tests/test.lua | |||
@@ -64,8 +64,6 @@ function load_testdata() | |||
64 | data.utf8_raw = "Failed to load utf8.dat" | 64 | data.utf8_raw = "Failed to load utf8.dat" |
65 | end | 65 | end |
66 | 66 | ||
67 | data.nested5 = {{{{{ "nested" }}}}} | ||
68 | |||
69 | data.table_cycle = {} | 67 | data.table_cycle = {} |
70 | data.table_cycle[1] = data.table_cycle | 68 | data.table_cycle[1] = data.table_cycle |
71 | 69 | ||
@@ -219,9 +217,9 @@ local all_tests = { | |||
219 | true, { '{"2":"numeric string key test"}' } }, | 217 | true, { '{"2":"numeric string key test"}' } }, |
220 | 218 | ||
221 | { "Encode nested table", | 219 | { "Encode nested table", |
222 | json.encode, { testdata.nested5 }, true, { '[[[[["nested"]]]]]' } }, | 220 | json.encode, { {{{{{"nested"}}}}} }, true, { '[[[[["nested"]]]]]' } }, |
223 | { "Encode nested table (throw error)", | 221 | { "Encode nested table (throw error)", |
224 | json.encode, { { testdata.nested5 } }, | 222 | json.encode, { { {{{{{"nested"}}}}} } }, |
225 | false, { "Cannot serialise, excessive nesting (6)" } }, | 223 | false, { "Cannot serialise, excessive nesting (6)" } }, |
226 | { "Encode table with cycle", | 224 | { "Encode table with cycle", |
227 | json.encode, { testdata.table_cycle }, | 225 | json.encode, { testdata.table_cycle }, |