diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2014-11-19 19:58:43 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2014-11-19 19:58:43 +0000 |
| commit | f97613b94d629821f2d62fb19dce0f20cef2fc0a (patch) | |
| tree | 0e2e6c32f9774b6e3c274a82aff6bc6215827a4b | |
| parent | modify sequence of events. (Bug 1247801) (diff) | |
| download | inkscape-f97613b94d629821f2d62fb19dce0f20cef2fc0a.tar.gz inkscape-f97613b94d629821f2d62fb19dce0f20cef2fc0a.zip | |
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)
| -rw-r--r-- | src/svg/stringstream-test.h | 6 |
1 files changed, 3 insertions, 3 deletions
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"); } |
