Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpx/lua-cjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-05-16 14:20:39 +0400
committerMark Pulford <mark@kyne.com.au>2011-05-16 14:20:39 +0400
commitbada0994dbe5f131964d7feb571478d0dd3974a5 (patch)
tree94d8d0952c03c9ac1bd1ae45bdb00ff1145c7d5c /tests
parent6ba7499ac5992c8cc849ffcbd6d2837d305f5b63 (diff)
Test module with invalid numbers enabled
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 19f5eca..be6ef67 100755
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -223,12 +223,11 @@ run_test_group("decode error", decode_error_tests)
run_test_group("encode error", encode_error_tests)
run_test_group("escape", escape_tests)
+cjson.refuse_invalid_numbers(false)
cjson.encode_max_depth(20)
for i = 1, #arg do
run_test("decode cycle " .. arg[i], test_decode_cycle, { arg[i] },
true, { true })
end
-cjson.refuse_invalid_numbers(true)
-
-- vi:ai et sw=4 ts=4: