From f79aa68af865ae84b36c7e794beedd87fef2ed54 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sun, 1 Nov 2015 01:51:30 -0700 Subject: feature: now we allow up to 16 decimal places in JSON number encoding via cjson.encode_number_precision(). thanks lordnynex for the patch in #4. Test cases for changing precision --- tests/test.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test.lua') diff --git a/tests/test.lua b/tests/test.lua index b8fce84..c96dd3d 100755 --- a/tests/test.lua +++ b/tests/test.lua @@ -361,7 +361,7 @@ local cjson_tests = { -- Function is listed as '?' due to pcall { "Set encode_number_precision(0) [throw error]", json.encode_number_precision, { 0 }, - false, { "bad argument #1 to '?' (expected integer between 1 and 14)" } }, + false, { "bad argument #1 to '?' (expected integer between 1 and 16)" } }, { "Set encode_number_precision(\"five\") [throw error]", json.encode_number_precision, { "five" }, false, { "bad argument #1 to '?' (number expected, got string)" } }, -- cgit v1.2.3-55-g6feb