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

This commit is contained in:
Dane Springmeyer 2013-01-17 16:57:01 -08:00
parent e16567fecb
commit 1c42f48613

View file

@ -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));