aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/json.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-12 09:44:12 +0100
committerJay Berkenbilt <ejb@ql.org>2021-02-13 08:30:00 +0100
commit07f40bd25442f25c0af948ae1b0dac7fdff1688c (patch)
tree3fca13d92b02bc3712d98c3c43f9612ae4c56cf1 /libtests/json.cc
parent8fbc8579f2481dc3eeb962e99522047291e16fbe (diff)
downloadqpdf-07f40bd25442f25c0af948ae1b0dac7fdff1688c.tar.zst
QUtil::double_to_string: trim trailing zeroes with option to disable
Diffstat (limited to 'libtests/json.cc')
-rw-r--r--libtests/json.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtests/json.cc b/libtests/json.cc
index 1ee7a5d3..d788ab4e 100644
--- a/libtests/json.cc
+++ b/libtests/json.cc
@@ -36,7 +36,7 @@ static void test_main()
" \"a\\tb\",\n"
" null,\n"
" 16059,\n"
- " 3.141590,\n"
+ " 3.14159,\n"
" 2.1e5\n"
"]");
JSON jmap = JSON::makeDictionary();
@@ -56,7 +56,7 @@ static void test_main()
" \"a\\tb\",\n"
" null,\n"
" 16059,\n"
- " 3.141590,\n"
+ " 3.14159,\n"
" 2.1e5\n"
" ],\n"
" \"b\": \"a\\tb\",\n"