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-29 11:10:04 +0400
committerMark Pulford <mark@kyne.com.au>2011-05-29 11:10:04 +0400
commit582ea61b9e4452426753272d921651681a1c8937 (patch)
tree0660935121c98ac7303861d3d0b2e3a153292d2a /tests
parentc8fc62e4f955248f2655e996872b6833b86b1523 (diff)
Display CJSON library version when testing
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test.lua b/tests/test.lua
index be6ef67..7a9b0ff 100755
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -150,7 +150,7 @@ local encode_error_tests = {
return 'Setting refuse_invalid_numbers(false).'
end,
function ()
- print('NOTE: receiving "-nan" is ok..')
+ print('NOTE: receiving "-nan" in the following test is ok..')
return
end,
{ json.encode, { NaN }, true, { "nan" } },
@@ -209,6 +209,8 @@ local escape_tests = {
{ json.decode, { utf16_escaped }, true, { utf8_raw } }
}
+print(string.format("Testing CJSON v%s\n", cjson.version))
+
run_test_group("decode simple value", decode_simple_tests)
run_test_group("encode simple value", encode_simple_tests)
run_test_group("decode numeric", decode_numeric_tests)