Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86598 - trunk/libs/geometry/test/geometries
From: barend.gehrels_at_[hidden]
Date: 2013-11-09 07:38:57


Author: barendgehrels
Date: 2013-11-09 07:38:57 EST (Sat, 09 Nov 2013)
New Revision: 86598
URL: http://svn.boost.org/trac/boost/changeset/86598

Log:
[geometry] quarantined test for range adaptors using filter, they do not support boost::size() so we can't use it in (current) practice

Text files modified:
   trunk/libs/geometry/test/geometries/boost_range.cpp | 7 +++++++
   1 files changed, 7 insertions(+), 0 deletions(-)

Modified: trunk/libs/geometry/test/geometries/boost_range.cpp
==============================================================================
--- trunk/libs/geometry/test/geometries/boost_range.cpp Sat Nov 9 07:02:36 2013 (r86597)
+++ trunk/libs/geometry/test/geometries/boost_range.cpp 2013-11-09 07:38:57 EST (Sat, 09 Nov 2013) (r86598)
@@ -25,6 +25,7 @@
 
 #include <sstream>
 
+#ifdef BOOST_GEOMETRY_TEST_QUARANTINED
 struct not_two
 {
     template <typename P>
@@ -42,6 +43,7 @@
         return boost::geometry::get<0>(p1) + boost::geometry::get<0>(p2) != 5.0;
     }
 };
+#endif
 
 
 template <typename P>
@@ -74,6 +76,10 @@
         BOOST_CHECK_EQUAL(out.str(), "LINESTRING(2 2,3 3)");
     }
 
+#ifdef BOOST_GEOMETRY_TEST_QUARANTINED
+// range filter adaptor does not support boost::size()
+// This makes it in practice not applicable, boost::geometry calls boost::size
+// in most if not all algorithms
     {
         std::ostringstream out;
         out << bg::wkt(ls | boost::adaptors::filtered(not_two()));
@@ -96,6 +102,7 @@
         //out << bg::wkt(ls | boost::adaptors::uniqued);
         //BOOST_CHECK_EQUAL(out.str(), "LINESTRING(1 1,2 2,3 3,4 4)");
     }
+#endif
 }
 
 template <typename P>


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