aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2012-01-03 21:49:49 +1030
committerMark Pulford <mark@kyne.com.au>2012-03-04 18:54:34 +1030
commit314f0d0675d8fdfdab3c44afd2ce7d6af8c05a46 (patch)
tree0164379eb98115208370d22b7563634793e45e26 /tests
parent2d1c3e8674bd208d44f82361c648306c6c0f8149 (diff)
downloadlua-cjson-314f0d0675d8fdfdab3c44afd2ce7d6af8c05a46.tar.gz
lua-cjson-314f0d0675d8fdfdab3c44afd2ce7d6af8c05a46.tar.bz2
lua-cjson-314f0d0675d8fdfdab3c44afd2ce7d6af8c05a46.zip
Limit significant digits in numbers.json to 14
The dtoa.c strtod() function slows down significantly when the number of digits exceeds the accuracy of a "double". JSON containing excessive digits is an unrepresentative test, limit to 14 digits.
Diffstat (limited to 'tests')
-rw-r--r--tests/numbers.json12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/numbers.json b/tests/numbers.json
index ef11a26..4f981ff 100644
--- a/tests/numbers.json
+++ b/tests/numbers.json
@@ -1,7 +1,7 @@
1[ 0.110001000000000000000001, 1[ 0.110001,
2 0.12345678910111213141516, 2 0.12345678910111,
3 0.412454033640, 3 0.412454033640,
4 2.6651441426902251886502972498731, 4 2.6651441426902,
5 2.718281828459045235360287471352, 5 2.718281828459,
6 3.141592653589793238462643383279, 6 3.1415926535898,
7 2.14069263277926 ] 7 2.1406926327793 ]