From 31673001106687036e70b9b3cf9fa48d4ad41e03 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Mon, 25 Mar 2024 19:11:55 +0200 Subject: [PATCH] Add more tests --- test/suites/encoding-flags/real-precision/input | 2 +- test/suites/encoding-flags/real-precision/output | 2 +- test/suites/valid/real-exponent-no-dtoa/input | 2 +- test/suites/valid/real-exponent-no-dtoa/output | 2 +- test/suites/valid/real-exponent/input | 2 +- test/suites/valid/real-exponent/output | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/suites/encoding-flags/real-precision/input b/test/suites/encoding-flags/real-precision/input index e291165c..146aeb97 100644 --- a/test/suites/encoding-flags/real-precision/input +++ b/test/suites/encoding-flags/real-precision/input @@ -1 +1 @@ -[1.23456789, 1.0, 1.0000000000000002] +[1.23456789, 1.0, 1.0000000000000002, 1.23456e99, 1.23456e-99, 0.0000000000012345] diff --git a/test/suites/encoding-flags/real-precision/output b/test/suites/encoding-flags/real-precision/output index f273c73e..36c86391 100644 --- a/test/suites/encoding-flags/real-precision/output +++ b/test/suites/encoding-flags/real-precision/output @@ -1 +1 @@ -[1.235, 1.0, 1.0] \ No newline at end of file +[1.235, 1.0, 1.0, 1.235e99, 1.235e-99, 1.235e-12] \ No newline at end of file diff --git a/test/suites/valid/real-exponent-no-dtoa/input b/test/suites/valid/real-exponent-no-dtoa/input index b2a69b9a..c9905961 100644 --- a/test/suites/valid/real-exponent-no-dtoa/input +++ b/test/suites/valid/real-exponent-no-dtoa/input @@ -1 +1 @@ -[123e45] +[1.23e47, 0.1, 0.3, 9.99] diff --git a/test/suites/valid/real-exponent-no-dtoa/output b/test/suites/valid/real-exponent-no-dtoa/output index 5ffc7196..c36687cf 100644 --- a/test/suites/valid/real-exponent-no-dtoa/output +++ b/test/suites/valid/real-exponent-no-dtoa/output @@ -1 +1 @@ -[1.2299999999999999e47] \ No newline at end of file +[1.2299999999999999e47, 0.10000000000000001, 0.29999999999999999, 9.9900000000000002] \ No newline at end of file diff --git a/test/suites/valid/real-exponent/input b/test/suites/valid/real-exponent/input index b2a69b9a..c9905961 100644 --- a/test/suites/valid/real-exponent/input +++ b/test/suites/valid/real-exponent/input @@ -1 +1 @@ -[123e45] +[1.23e47, 0.1, 0.3, 9.99] diff --git a/test/suites/valid/real-exponent/output b/test/suites/valid/real-exponent/output index 9b2c601e..51c590f2 100644 --- a/test/suites/valid/real-exponent/output +++ b/test/suites/valid/real-exponent/output @@ -1 +1 @@ -[1.23e47] \ No newline at end of file +[1.23e47, 0.1, 0.3, 9.99] \ No newline at end of file