From 77299c8c22f7b2dbc8d7c7c459cb48e0930a28b0 Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Sat, 31 Oct 2015 11:35:22 +0100 Subject: [PATCH] [intersection] testcase was already fixed by colocations solution, remove #ifdef and add testcase --- test/algorithms/overlay/overlay_cases.hpp | 8 ++++++++ .../set_operations/intersection/intersection.cpp | 15 ++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/test/algorithms/overlay/overlay_cases.hpp b/test/algorithms/overlay/overlay_cases.hpp index 2b0695255..f2cdb5df7 100644 --- a/test/algorithms/overlay/overlay_cases.hpp +++ b/test/algorithms/overlay/overlay_cases.hpp @@ -895,4 +895,12 @@ static std::string mysql_21964049[2] = "POLYGON((7 4,-14 10,7 -17,7 4),(7 1,0 3,-2 4,7 1))" }; +static std::string mysql_21964465[2] = + { + "POLYGON((0 0,0 10,10 10,10 0, 0 0), (0 8, 4 4, 4 6, 0 8))", + "POLYGON((0 8,-8 8,-2 2,0 8))", + }; + + + #endif // BOOST_GEOMETRY_TEST_OVERLAY_CASES_HPP diff --git a/test/algorithms/set_operations/intersection/intersection.cpp b/test/algorithms/set_operations/intersection/intersection.cpp index 53676cc8e..d1002781f 100644 --- a/test/algorithms/set_operations/intersection/intersection.cpp +++ b/test/algorithms/set_operations/intersection/intersection.cpp @@ -324,12 +324,17 @@ void test_areal() test_one("buffer_mp2", buffer_mp2[0], buffer_mp2[1], 1, 29, 0.457126); -#ifdef BOOST_GEOMETRY_TEST_ENABLE_FAILING - test_one("mysql_21964465", - "POLYGON((0 0,0 10,10 10,10 0, 0 0), (0 8, 4 4, 4 6, 0 8))", - "POLYGON((0 8,-8 8,-2 2,0 8))", + test_one("case_80", + case_80[0], case_80[1], + 0, -1, 0.0); + + test_one("mysql_21964049", + mysql_21964049[0], mysql_21964049[1], + 0, -1, 0.0); + + test_one("mysql_21964465", + mysql_21964465[0], mysql_21964465[1], 0, -1, 0.0); -#endif return;