Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83745 - trunk/libs/geometry/test/algorithms
From: barend.gehrels_at_[hidden]
Date: 2013-04-03 11:49:55


Author: barendgehrels
Date: 2013-04-03 11:49:55 EDT (Wed, 03 Apr 2013)
New Revision: 83745
URL: http://svn.boost.org/trac/boost/changeset/83745

Log:
[geometry] fix unit test error (expected value was wrong) and warnings for within test
Text files modified:
   trunk/libs/geometry/test/algorithms/within.cpp | 5 ++++-
   1 files changed, 4 insertions(+), 1 deletions(-)

Modified: trunk/libs/geometry/test/algorithms/within.cpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/within.cpp (original)
+++ trunk/libs/geometry/test/algorithms/within.cpp 2013-04-03 11:49:55 EDT (Wed, 03 Apr 2013)
@@ -153,7 +153,7 @@
     BOOST_CHECK_EQUAL(bg::within(point_type(2, 2, 5), box), false);
 
     box_type box2(point_type(2, 2, 2), point_type(3, 3, 3));
- BOOST_CHECK_EQUAL(bg::within(box2, box), false);
+ BOOST_CHECK_EQUAL(bg::within(box2, box), true);
 
 }
 
@@ -213,12 +213,15 @@
 
     bool r = bg::within(p, b,
         bg::strategy::within::point_in_box<point_type, box_type>());
+ BOOST_CHECK_EQUAL(r, true);
 
     r = bg::within(b, b,
         bg::strategy::within::box_in_box<box_type, box_type>());
+ BOOST_CHECK_EQUAL(r, false);
 
     r = bg::within(p, b,
         bg::strategy::within::point_in_box_by_side<point_type, box_type>());
+ BOOST_CHECK_EQUAL(r, true);
 }
 
 


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