From: Petri Lehtinen Date: Thu, 17 Dec 2009 22:03:38 +0000 (+0200) Subject: Fix tests for real X-Git-Tag: v1.2~17 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=jansson.git;a=commitdiff_plain;h=2db2f2cfb6d48e74539454a93b58734fb0246b8b Fix tests for real The tests were broken by the "%.17g" fix that was merged from the 1.1 branch. --- diff --git a/test/suites/valid-strip/real-capital-e-negative-exponent/output b/test/suites/valid-strip/real-capital-e-negative-exponent/output index 9c9a06a..75b9ef9 100644 --- a/test/suites/valid-strip/real-capital-e-negative-exponent/output +++ b/test/suites/valid-strip/real-capital-e-negative-exponent/output @@ -1 +1 @@ -[0.01000000000000000] \ No newline at end of file +[0.01] \ No newline at end of file diff --git a/test/suites/valid-strip/real-capital-e-positive-exponent/output b/test/suites/valid-strip/real-capital-e-positive-exponent/output index 0cc2e4d..d8ff702 100644 --- a/test/suites/valid-strip/real-capital-e-positive-exponent/output +++ b/test/suites/valid-strip/real-capital-e-positive-exponent/output @@ -1 +1 @@ -[100.00000000000000000] \ No newline at end of file +[100.0] \ No newline at end of file diff --git a/test/suites/valid-strip/real-capital-e/output b/test/suites/valid-strip/real-capital-e/output index 5750cf5..88e90ce 100644 --- a/test/suites/valid-strip/real-capital-e/output +++ b/test/suites/valid-strip/real-capital-e/output @@ -1 +1 @@ -[10000000000000000000000.00000000000000000] \ No newline at end of file +[1e+22] \ No newline at end of file diff --git a/test/suites/valid-strip/real-exponent/output b/test/suites/valid-strip/real-exponent/output index f78e2cd..ac910d6 100644 --- a/test/suites/valid-strip/real-exponent/output +++ b/test/suites/valid-strip/real-exponent/output @@ -1 +1 @@ -[122999999999999994846185700645503654167417192448.00000000000000000] \ No newline at end of file +[1.2299999999999999e+47] \ No newline at end of file diff --git a/test/suites/valid-strip/real-fraction-exponent/output b/test/suites/valid-strip/real-fraction-exponent/output index c0ca46e..4b87bda 100644 --- a/test/suites/valid-strip/real-fraction-exponent/output +++ b/test/suites/valid-strip/real-fraction-exponent/output @@ -1 +1 @@ -[123456000000000003773544074641513176432063851726237026847343602712484748520849408.00000000000000000] \ No newline at end of file +[1.23456e+80] \ No newline at end of file diff --git a/test/suites/valid-strip/real-negative-exponent/output b/test/suites/valid-strip/real-negative-exponent/output index 9c9a06a..75b9ef9 100644 --- a/test/suites/valid-strip/real-negative-exponent/output +++ b/test/suites/valid-strip/real-negative-exponent/output @@ -1 +1 @@ -[0.01000000000000000] \ No newline at end of file +[0.01] \ No newline at end of file diff --git a/test/suites/valid-strip/real-positive-exponent/output b/test/suites/valid-strip/real-positive-exponent/output index 0cc2e4d..d8ff702 100644 --- a/test/suites/valid-strip/real-positive-exponent/output +++ b/test/suites/valid-strip/real-positive-exponent/output @@ -1 +1 @@ -[100.00000000000000000] \ No newline at end of file +[100.0] \ No newline at end of file diff --git a/test/suites/valid-strip/simple-real/output b/test/suites/valid-strip/simple-real/output index 5aef35f..b02878e 100644 --- a/test/suites/valid-strip/simple-real/output +++ b/test/suites/valid-strip/simple-real/output @@ -1 +1 @@ -[123.45678900000000056] \ No newline at end of file +[123.456789] \ No newline at end of file diff --git a/test/suites/valid/real-capital-e-negative-exponent/output b/test/suites/valid/real-capital-e-negative-exponent/output index 9c9a06a..75b9ef9 100644 --- a/test/suites/valid/real-capital-e-negative-exponent/output +++ b/test/suites/valid/real-capital-e-negative-exponent/output @@ -1 +1 @@ -[0.01000000000000000] \ No newline at end of file +[0.01] \ No newline at end of file diff --git a/test/suites/valid/real-capital-e-positive-exponent/output b/test/suites/valid/real-capital-e-positive-exponent/output index 0cc2e4d..d8ff702 100644 --- a/test/suites/valid/real-capital-e-positive-exponent/output +++ b/test/suites/valid/real-capital-e-positive-exponent/output @@ -1 +1 @@ -[100.00000000000000000] \ No newline at end of file +[100.0] \ No newline at end of file diff --git a/test/suites/valid/real-capital-e/output b/test/suites/valid/real-capital-e/output index 5750cf5..88e90ce 100644 --- a/test/suites/valid/real-capital-e/output +++ b/test/suites/valid/real-capital-e/output @@ -1 +1 @@ -[10000000000000000000000.00000000000000000] \ No newline at end of file +[1e+22] \ No newline at end of file diff --git a/test/suites/valid/real-exponent/output b/test/suites/valid/real-exponent/output index f78e2cd..ac910d6 100644 --- a/test/suites/valid/real-exponent/output +++ b/test/suites/valid/real-exponent/output @@ -1 +1 @@ -[122999999999999994846185700645503654167417192448.00000000000000000] \ No newline at end of file +[1.2299999999999999e+47] \ No newline at end of file diff --git a/test/suites/valid/real-fraction-exponent/output b/test/suites/valid/real-fraction-exponent/output index c0ca46e..4b87bda 100644 --- a/test/suites/valid/real-fraction-exponent/output +++ b/test/suites/valid/real-fraction-exponent/output @@ -1 +1 @@ -[123456000000000003773544074641513176432063851726237026847343602712484748520849408.00000000000000000] \ No newline at end of file +[1.23456e+80] \ No newline at end of file diff --git a/test/suites/valid/real-negative-exponent/output b/test/suites/valid/real-negative-exponent/output index 9c9a06a..75b9ef9 100644 --- a/test/suites/valid/real-negative-exponent/output +++ b/test/suites/valid/real-negative-exponent/output @@ -1 +1 @@ -[0.01000000000000000] \ No newline at end of file +[0.01] \ No newline at end of file diff --git a/test/suites/valid/real-positive-exponent/output b/test/suites/valid/real-positive-exponent/output index 0cc2e4d..d8ff702 100644 --- a/test/suites/valid/real-positive-exponent/output +++ b/test/suites/valid/real-positive-exponent/output @@ -1 +1 @@ -[100.00000000000000000] \ No newline at end of file +[100.0] \ No newline at end of file diff --git a/test/suites/valid/simple-real/output b/test/suites/valid/simple-real/output index 5aef35f..b02878e 100644 --- a/test/suites/valid/simple-real/output +++ b/test/suites/valid/simple-real/output @@ -1 +1 @@ -[123.45678900000000056] \ No newline at end of file +[123.456789] \ No newline at end of file