From f97613b94d629821f2d62fb19dce0f20cef2fc0a Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Wed, 19 Nov 2014 20:58:43 +0100 Subject: Tests: fix stringstream-test for outputting floating point numbers. At http://www.cplusplus.com/reference/ios/scientific/ I read that there are always three exponential digits (instead of the two that the test was testing for). If this is not standard, we should rewrite the tests. (bzr r13736) --- src/svg/stringstream-test.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/svg/stringstream-test.h') diff --git a/src/svg/stringstream-test.h b/src/svg/stringstream-test.h index ce32683f8..305cf6b8d 100644 --- a/src/svg/stringstream-test.h +++ b/src/svg/stringstream-test.h @@ -37,9 +37,9 @@ public: svg_test_float(-0.0625, "-0.0625"); svg_test_float(30.0, "30"); svg_test_float(12345678.0, "12345678"); - svg_test_float(3e9, "3e+09"); - svg_test_float(-3.5e9, "-3.5e+09"); - svg_test_float(32768e9, "3.2768e+13"); + svg_test_float(3e9, "3e+009"); + svg_test_float(-3.5e9, "-3.5e+009"); + svg_test_float(32768e9, "3.2768e+013"); svg_test_float(-10.5, "-10.5"); } -- cgit v1.2.3