Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71629 - trunk/libs/geometry/test/ranges
From: barend.gehrels_at_[hidden]
Date: 2011-04-30 12:30:35


Author: barendgehrels
Date: 2011-04-30 12:30:35 EDT (Sat, 30 Apr 2011)
New Revision: 71629
URL: http://svn.boost.org/trac/boost/changeset/71629

Log:
Unit tests now check Boost.Range concept checking
Text files modified:
   trunk/libs/geometry/test/ranges/box_range.cpp | 3 +++
   trunk/libs/geometry/test/ranges/segment_range.cpp | 4 ++++
   2 files changed, 7 insertions(+), 0 deletions(-)

Modified: trunk/libs/geometry/test/ranges/box_range.cpp
==============================================================================
--- trunk/libs/geometry/test/ranges/box_range.cpp (original)
+++ trunk/libs/geometry/test/ranges/box_range.cpp 2011-04-30 12:30:35 EDT (Sat, 30 Apr 2011)
@@ -54,6 +54,9 @@
         int const n = boost::size(range);
         BOOST_CHECK_EQUAL(n, 5);
     }
+
+ // Check Boost.Range concept
+ BOOST_CONCEPT_ASSERT( (boost::ForwardRangeConcept<range_type>) );
 }
 
 

Modified: trunk/libs/geometry/test/ranges/segment_range.cpp
==============================================================================
--- trunk/libs/geometry/test/ranges/segment_range.cpp (original)
+++ trunk/libs/geometry/test/ranges/segment_range.cpp 2011-04-30 12:30:35 EDT (Sat, 30 Apr 2011)
@@ -58,6 +58,10 @@
         int const n = boost::size(range);
         BOOST_CHECK_EQUAL(n, 2);
     }
+
+ // Check Boost.Range concept
+ BOOST_CONCEPT_ASSERT( (boost::ForwardRangeConcept<range_type>) );
+
 }
 
 


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