From 4debe8e56767a6faa6e1d7c0391794b44d5b2995 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Wed, 7 May 2014 08:19:39 +0300 Subject: [PATCH] Add missing tests for JSON_REAL_PRECISION --- test/suites/encoding-flags/real-precision/env | 2 ++ test/suites/encoding-flags/real-precision/input | 1 + test/suites/encoding-flags/real-precision/output | 1 + 3 files changed, 4 insertions(+) create mode 100644 test/suites/encoding-flags/real-precision/env create mode 100644 test/suites/encoding-flags/real-precision/input create mode 100644 test/suites/encoding-flags/real-precision/output diff --git a/test/suites/encoding-flags/real-precision/env b/test/suites/encoding-flags/real-precision/env new file mode 100644 index 0000000..9c52cbc --- /dev/null +++ b/test/suites/encoding-flags/real-precision/env @@ -0,0 +1,2 @@ +JSON_REAL_PRECISION=4 +export JSON_REAL_PRECISION diff --git a/test/suites/encoding-flags/real-precision/input b/test/suites/encoding-flags/real-precision/input new file mode 100644 index 0000000..e291165 --- /dev/null +++ b/test/suites/encoding-flags/real-precision/input @@ -0,0 +1 @@ +[1.23456789, 1.0, 1.0000000000000002] diff --git a/test/suites/encoding-flags/real-precision/output b/test/suites/encoding-flags/real-precision/output new file mode 100644 index 0000000..f273c73 --- /dev/null +++ b/test/suites/encoding-flags/real-precision/output @@ -0,0 +1 @@ +[1.235, 1.0, 1.0] \ No newline at end of file