Debian Codegraph @

debian/patches/disable-sparse-array-test

raw
1 diff --git a/tests/test.lua b/tests/test.lua
2 index 31e7270..5d5c359 100755
3 --- a/tests/test.lua
4 +++ b/tests/test.lua
5 @@ -289,9 +289,10 @@ local cjson_tests = {
6 { "Encode sparse table as array #2",
7 json.encode, { { [1] = "one", [4] = "sparse test" } },
8 true, { '["one",null,null,"sparse test"]' } },
9 - { "Encode sparse array as object",
10 - json.encode, { { [1] = "one", [5] = "sparse test" } },
11 - true, { '{"1":"one","5":"sparse test"}' } },
12 + -- buggy: the sequence of sparse array cannot be predetermined
13 + -- { "Encode sparse array as object",
14 + -- json.encode, { { [1] = "one", [5] = "sparse test" } },
15 + -- true, { '{"1":"one","5":"sparse test"}' } },
16 { "Encode table with numeric string key as object",
17 json.encode, { { ["2"] = "numeric string key test" } },
18 true, { '{"2":"numeric string key test"}' } },