Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59791 - sandbox/geometry/libs/geometry/test/algorithms
From: mateusz_at_[hidden]
Date: 2010-02-20 15:30:12


Author: mloskot
Date: 2010-02-20 15:30:11 EST (Sat, 20 Feb 2010)
New Revision: 59791
URL: http://svn.boost.org/trac/boost/changeset/59791

Log:
Geometry: Updated union test case of Isovist with expected number of points for type 'd'. Corrected signed vs unsigned cast in comparison
Text files modified:
   sandbox/geometry/libs/geometry/test/algorithms/test_union.hpp | 2 +-
   sandbox/geometry/libs/geometry/test/algorithms/union.cpp | 5 ++++-
   2 files changed, 5 insertions(+), 2 deletions(-)

Modified: sandbox/geometry/libs/geometry/test/algorithms/test_union.hpp
==============================================================================
--- sandbox/geometry/libs/geometry/test/algorithms/test_union.hpp (original)
+++ sandbox/geometry/libs/geometry/test/algorithms/test_union.hpp 2010-02-20 15:30:11 EST (Sat, 20 Feb 2010)
@@ -68,7 +68,7 @@
         << std::endl;
     ***/
 
- BOOST_CHECK_MESSAGE(int(n) == expected_point_count,
+ BOOST_CHECK_MESSAGE(std::size_t(n) == expected_point_count,
             "union: " << caseid
             << " #points expected: " << expected_point_count
             << " detected: " << n

Modified: sandbox/geometry/libs/geometry/test/algorithms/union.cpp
==============================================================================
--- sandbox/geometry/libs/geometry/test/algorithms/union.cpp (original)
+++ sandbox/geometry/libs/geometry/test/algorithms/union.cpp 2010-02-20 15:30:11 EST (Sat, 20 Feb 2010)
@@ -232,7 +232,10 @@
 #if defined(_MSC_VER)
             tn == std::string("f") ? 71 : 72,
 #else
- tn == std::string("f") ? 71 : tn == std::string("e") ? 75 : 70,
+ tn == std::string("f") ? 71 :
+ tn == std::string("e") ? 75 :
+ tn == std::string("d") ? 72 :
+ 70,
 #endif
             313.3603646,
             0.1);


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