diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-05-29 11:10:04 +0400 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-05-29 11:10:04 +0400 |
commit | 582ea61b9e4452426753272d921651681a1c8937 (patch) | |
tree | 0660935121c98ac7303861d3d0b2e3a153292d2a /tests | |
parent | c8fc62e4f955248f2655e996872b6833b86b1523 (diff) |
Display CJSON library version when testing
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test.lua | 4 |
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) |