freebsd-ports/graphics/mapnik/files/patch-tests-cpp_tests-conversions_test.cpp
William Grzybowski de9e707565 graphics/mapnik: update to 2.2.0
- Update to 2.2.0 [1] [2]
- Make JPEG, PNG and TIFF as options [2]
- Remove GEOS option [2]
- Install docs [1]
- Remove leading article from COMMENT [1]

PR:		ports/179349 [1], ports/180274 [2]
Submitted by:	nemysis <nemysis gmx.ch> [1]
		Alexey Illarionov <littlesavage rambler.ru> [2] (maintainer)
2013-07-06 11:51:07 +00:00

79 lines
2.5 KiB
C++

--- tests/cpp_tests/conversions_test.cpp.orig 2013-06-30 22:35:29.000000000 +0400
+++ tests/cpp_tests/conversions_test.cpp 2013-06-30 22:38:32.000000000 +0400
@@ -166,31 +166,31 @@
BOOST_TEST_EQ( out, "1e+09" );
out.clear();
- to_string(out, double(10000000000));
+ to_string(out, double(10000000000ULL));
BOOST_TEST_EQ( out, "1e+10" );
out.clear();
- to_string(out, double(100000000000));
+ to_string(out, double(100000000000ULL));
BOOST_TEST_EQ( out, "1e+11" );
out.clear();
- to_string(out, double(1000000000000));
+ to_string(out, double(1000000000000ULL));
BOOST_TEST_EQ( out, "1e+12" );
out.clear();
- to_string(out, double(10000000000000));
+ to_string(out, double(10000000000000ULL));
BOOST_TEST_EQ( out, "1e+13" );
out.clear();
- to_string(out, double(100000000000000));
+ to_string(out, double(100000000000000ULL));
BOOST_TEST_EQ( out, "1e+14" );
out.clear();
- to_string(out, double(1000000000000005));
+ to_string(out, double(1000000000000005ULL));
BOOST_TEST_EQ( out, "1e+15" );
out.clear();
- to_string(out, double(-1000000000000000));
+ to_string(out, double(-1000000000000000LL));
BOOST_TEST_EQ( out, "-1e+15" );
out.clear();
@@ -210,7 +210,7 @@
BOOST_TEST_EQ( out, "67.35" );
out.clear();
- to_string(out, double(1234000000000000));
+ to_string(out, double(1234000000000000ULL));
BOOST_TEST_EQ( out, "1.234e+15" );
out.clear();
@@ -235,16 +235,16 @@
BOOST_TEST_EQ( out, "-2" );
out.clear();
- to_string(out, int(2147483647));
+ to_string(out, int(2147483647ULL));
BOOST_TEST_EQ( out, "2147483647" );
out.clear();
- to_string(out, int(-2147483648));
+ to_string(out, int(-2147483648LL));
BOOST_TEST_EQ( out, "-2147483648" );
out.clear();
// unsigned
- to_string(out, unsigned(4294967295));
+ to_string(out, unsigned(4294967295ULL));
BOOST_TEST_EQ( out, "4294967295" );
out.clear();
@@ -258,7 +258,7 @@
BOOST_TEST_EQ( out, "-2" );
out.clear();
- to_string(out,mapnik::value_integer(9223372036854775807));
+ to_string(out,mapnik::value_integer(9223372036854775807ULL));
BOOST_TEST_EQ( out, "9223372036854775807" );
out.clear();
#else