From 522f71b81f1ac98002b4cf8516fc7a04c94de7d1 Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Mon, 11 Sep 2017 22:59:56 +0200 Subject: [PATCH] [test][intersection] Add L/A->P case of Linestring on boundary of Polygon. --- .../set_operations/intersection/intersection.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/algorithms/set_operations/intersection/intersection.cpp b/test/algorithms/set_operations/intersection/intersection.cpp index b865960cb..b9c55de93 100644 --- a/test/algorithms/set_operations/intersection/intersection.cpp +++ b/test/algorithms/set_operations/intersection/intersection.cpp @@ -616,6 +616,13 @@ void test_areal_linear() "POLYGON((25 0,0 15,30 15,22 10,25 0))", "LINESTRING(25 0, 0 15,20 15)", 1, 3, 49.15475947422650 /*sqrt(25^2+15^2)+20*/); + + typedef typename bg::point_type::type P; + + test_one_lp("case30p", + "POLYGON((25 0,0 15,30 15,22 10,25 0))", + "LINESTRING(10 15,20 15)", + 2, 2, 0); }