[test] enable testcase for all operations

This commit is contained in:
Barend Gehrels 2017-09-06 10:21:39 +02:00
parent edb8f92642
commit 3232fd0675
4 changed files with 17 additions and 6 deletions

View File

@ -1331,4 +1331,11 @@ static std::string mysql_23023665_12[2] =
"MULTIPOLYGON(((2 3,-3 5,-10 -1,2 3)))"
};
static std::string mysql_regression_1_65_2017_08_31[2] =
{
"MULTIPOLYGON(((23.695652173913043 4.3478260869565215,23.333333333333336 4.166666666666667,25 0,23.695652173913043 4.3478260869565215)),((10 15,0 15,8.870967741935484 9.67741935483871,10.777777750841748 14.44444437710437,10 15)))",
"MULTIPOLYGON(((10 15,20 15,15 25,10 15)),((10 15,0 15,7 10,5 0,15 5,15.90909090909091 4.545454545454546,17 10,10 15)),((23.695652173913043 4.3478260869565215,20 2.5,25 0,23.695652173913043 4.3478260869565215)))",
};
#endif // BOOST_GEOMETRY_TEST_MULTI_OVERLAY_CASES_HPP

View File

@ -396,6 +396,13 @@ void test_areal()
2, -1, 131.21376870369406,
sym_settings);
}
#ifdef BOOST_GEOMETRY_INCLUDE_SELF_TURNS
TEST_DIFFERENCE(mysql_regression_1_65_2017_08_31, 1, 4.30697514e-7, 3, 152.0642, 4);
#else
// Misses one turn which is actually weird because there are no self-turns involved
TEST_DIFFERENCE(mysql_regression_1_65_2017_08_31, 0, 0, 3, 152.0642, 3);
#endif
}

View File

@ -364,6 +364,8 @@ void test_areal()
#else
TEST_INTERSECTION_IGNORE(mysql_23023665_12, 1, -1, 11.812440191387557);
#endif
TEST_INTERSECTION(mysql_regression_1_65_2017_08_31, 2, -1, 29.9022122);
}
template <typename Polygon, typename MultiPolygon, typename Box>

View File

@ -449,12 +449,7 @@ void test_areal()
mysql_23023665_9[0], mysql_23023665_9[1],
1, 9, -1, 1250.0);
#ifdef BOOST_GEOMETRY_ENABLE_FAILING_TESTS
test_one<Polygon, MultiPolygon, MultiPolygon>("mysql_regression_1_65",
"MULTIPOLYGON(((23.695652173913043 4.3478260869565215,23.333333333333336 4.166666666666667,25 0,23.695652173913043 4.3478260869565215)),((10 15,0 15,8.870967741935484 9.67741935483871,10.777777750841748 14.44444437710437,10 15)))",
"MULTIPOLYGON(((10 15,20 15,15 25,10 15)),((10 15,0 15,7 10,5 0,15 5,15.90909090909091 4.545454545454546,17 10,10 15)),((23.695652173913043 4.3478260869565215,20 2.5,25 0,23.695652173913043 4.3478260869565215)))",
3, 0, -1, 181.966397646608);
#endif
TEST_UNION(mysql_regression_1_65_2017_08_31, 3, 0, -1, 181.966397646608);
}
// Test cases (generic)