diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-05-29 16:40:04 +0930 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-05-29 16:40:04 +0930 |
commit | 582ea61b9e4452426753272d921651681a1c8937 (patch) | |
tree | 0660935121c98ac7303861d3d0b2e3a153292d2a | |
parent | c8fc62e4f955248f2655e996872b6833b86b1523 (diff) | |
download | lua-cjson-582ea61b9e4452426753272d921651681a1c8937.tar.gz lua-cjson-582ea61b9e4452426753272d921651681a1c8937.tar.bz2 lua-cjson-582ea61b9e4452426753272d921651681a1c8937.zip |
Display CJSON library version when testing
-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 = { | |||
150 | return 'Setting refuse_invalid_numbers(false).' | 150 | return 'Setting refuse_invalid_numbers(false).' |
151 | end, | 151 | end, |
152 | function () | 152 | function () |
153 | print('NOTE: receiving "-nan" is ok..') | 153 | print('NOTE: receiving "-nan" in the following test is ok..') |
154 | return | 154 | return |
155 | end, | 155 | end, |
156 | { json.encode, { NaN }, true, { "nan" } }, | 156 | { json.encode, { NaN }, true, { "nan" } }, |
@@ -209,6 +209,8 @@ local escape_tests = { | |||
209 | { json.decode, { utf16_escaped }, true, { utf8_raw } } | 209 | { json.decode, { utf16_escaped }, true, { utf8_raw } } |
210 | } | 210 | } |
211 | 211 | ||
212 | print(string.format("Testing CJSON v%s\n", cjson.version)) | ||
213 | |||
212 | run_test_group("decode simple value", decode_simple_tests) | 214 | run_test_group("decode simple value", decode_simple_tests) |
213 | run_test_group("encode simple value", encode_simple_tests) | 215 | run_test_group("encode simple value", encode_simple_tests) |
214 | run_test_group("decode numeric", decode_numeric_tests) | 216 | run_test_group("decode numeric", decode_numeric_tests) |