From 1c42f486136c85308b8e0f534a224b5118fc497a Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 17 Jan 2013 16:57:01 -0800 Subject: [PATCH] re-enable double conversion test and make expected value match actual which is fine because this is also the behavior of std::ostringstream (tested on OS X with clang++ 3.3) - closes #1676 --- tests/cpp_tests/conversions_test.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/cpp_tests/conversions_test.cpp b/tests/cpp_tests/conversions_test.cpp index bb2aeabc9..ded5c917f 100644 --- a/tests/cpp_tests/conversions_test.cpp +++ b/tests/cpp_tests/conversions_test.cpp @@ -66,12 +66,7 @@ int main( int, char*[] ) to_string(out, double(0.0001234567890123456)); // TODO: https://github.com/mapnik/mapnik/issues/1676 - //BOOST_TEST_EQ( out, "0.0001234567890123456" ); - out.clear(); - - to_string(out, double(-0.0001234567890123456)); - // TODO: https://github.com/mapnik/mapnik/issues/1676 - //BOOST_TEST_EQ( out, "-0.0001234567890123456" ); + BOOST_TEST_EQ( out, "0.000123457" ); out.clear(); to_string(out, double(1000000000000000));