diff options
author | Yichun Zhang (agentzh) <agentzh@gmail.com> | 2017-11-15 20:23:23 -0800 |
---|---|---|
committer | Yichun Zhang (agentzh) <agentzh@gmail.com> | 2017-11-15 20:23:23 -0800 |
commit | efd56ddb9f4571afbd3232672efd7ff4da3beae5 (patch) | |
tree | 0232108ffd7dd3d6d547b4d7fe374b3cabe1cf54 /tests/test.lua | |
parent | bf7e15d1b341d04c4e06bc6fc1c4e2c37f29b1ab (diff) | |
download | lua-cjson-efd56ddb9f4571afbd3232672efd7ff4da3beae5.tar.gz lua-cjson-efd56ddb9f4571afbd3232672efd7ff4da3beae5.tar.bz2 lua-cjson-efd56ddb9f4571afbd3232672efd7ff4da3beae5.zip |
tests: now we use luajit to run the test suite.
Diffstat (limited to 'tests/test.lua')
-rwxr-xr-x | tests/test.lua | 2 |
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"}' } }, |