Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75671 - trunk/libs/geometry/test/algorithms
From: barend.gehrels_at_[hidden]
Date: 2011-11-26 12:32:35


Author: barendgehrels
Date: 2011-11-26 12:32:34 EST (Sat, 26 Nov 2011)
New Revision: 75671
URL: http://svn.boost.org/trac/boost/changeset/75671

Log:
Linestring/polygon overlay, unit tests for phase 7
Text files modified:
   trunk/libs/geometry/test/algorithms/intersection.cpp | 4 ++++
   trunk/libs/geometry/test/algorithms/test_intersection.hpp | 2 +-
   2 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/libs/geometry/test/algorithms/intersection.cpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/intersection.cpp (original)
+++ trunk/libs/geometry/test/algorithms/intersection.cpp 2011-11-26 12:32:34 EST (Sat, 26 Nov 2011)
@@ -317,6 +317,10 @@
     std::string const angly = "LINESTRING(2 2,2 1,4 1,4 2,5 2,5 3,4 3,4 4,5 4,3 6,3 5,2 5,2 6,0 4)";
     test_one_lp<LineString, Polygon, LineString>("case17", "POLYGON((1 1,1 5,4 5,4 1,1 1))", angly, 3, 8, 6.0);
     test_one_lp<LineString, Polygon, LineString>("case18", "POLYGON((1 1,1 5,5 5,5 1,1 1))", angly, 2, 12, 10.0 + sqrt(2.0));
+ test_one_lp<LineString, Polygon, LineString>("case19", poly_9, "LINESTRING(1 2,1 3,0 3)", 1, 2, 1.0);
+ test_one_lp<LineString, Polygon, LineString>("case20", poly_9, "LINESTRING(1 2,1 3,2 3)", 1, 3, 2.0);
+
+ test_one_lp<LineString, Polygon, LineString>("case21", poly_9, "LINESTRING(1 2,1 4,4 4,4 1,2 1,2 2)", 1, 6, 11.0);
 
     // Compile test - arguments in any order:
     test_one<LineString, Polygon, LineString>("simplex", poly_simplex, "LINESTRING(0 2,4 2)", 1, 2, 2.0);

Modified: trunk/libs/geometry/test/algorithms/test_intersection.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_intersection.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_intersection.hpp 2011-11-26 12:32:34 EST (Sat, 26 Nov 2011)
@@ -216,7 +216,7 @@
     // A linestring reversed should deliver exactly the same.
     bg::reverse(linear);
 
- test_intersection<OutputType, void>(caseid, areal, linear,
+ test_intersection<OutputType, void>(caseid + "_rev", areal, linear,
         expected_count, expected_point_count,
         expected_length, percentage, debug2);
 }


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