Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80745 - trunk/libs/polygon/test
From: sydorchuk.andriy_at_[hidden]
Date: 2012-09-28 17:57:03


Author: asydorchuk
Date: 2012-09-28 17:57:03 EDT (Fri, 28 Sep 2012)
New Revision: 80745
URL: http://svn.boost.org/trac/boost/changeset/80745

Log:
Polygon: improving logging to track error on MinGW-w64-4.7 jc-bell.com platform.

Text files modified:
   trunk/libs/polygon/test/voronoi_builder_test.cpp | 9 +++++++++
   1 files changed, 9 insertions(+), 0 deletions(-)

Modified: trunk/libs/polygon/test/voronoi_builder_test.cpp
==============================================================================
--- trunk/libs/polygon/test/voronoi_builder_test.cpp (original)
+++ trunk/libs/polygon/test/voronoi_builder_test.cpp 2012-09-28 17:57:03 EDT (Fri, 28 Sep 2012)
@@ -458,6 +458,15 @@
   segments.push_back(segment_data<T>(point2, point3));
   points.push_back(point1);
   construct_voronoi(points.begin(), points.end(), segments.begin(), segments.end(), &test_output);
+ using boost::polygon::detail::int32;
+ using boost::polygon::detail::int64;
+ using boost::polygon::detail::fpt64;
+ BOOST_CHECK_EQUAL(sizeof(detail::fpt64), 8U);
+ BOOST_CHECK_EQUAL(sizeof(detail::int32), 4U);
+ BOOST_CHECK_EQUAL(sizeof(detail::int64), 8U);
+ vd_type::vertex_type v = test_output.vertices()[0];
+ BOOST_CHECK_EQUAL(v.x(), -0.25);
+ BOOST_CHECK_EQUAL(v.y(), 0.0);
   CHECK_OUTPUT_SIZE(test_output, 4, 2, 10);
   VERIFY_NO_HALF_EDGE_INTERSECTIONS(test_output);
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk