[test] add case with two ext/int colocations at the same point

This commit is contained in:
Barend Gehrels 2015-10-31 11:16:55 +01:00
parent 013420fd07
commit a1e4a65f9a
2 changed files with 9 additions and 0 deletions

View File

@ -353,6 +353,12 @@ static std::string case_79[2] = {
"POLYGON((0 0,0 5,5 5,5 0,2 0,2 2,1 2,1 0,0 0))"
};
// Two colocations of interior/exterior ring
static std::string case_80[2] = {
"POLYGON((0 5,5 10,10 5,5 0,0 5),(10 5,4 6,5 4,10 5))",
"POLYGON((10 0,10 10,20 10,20 0,10 0),(10 5,15 3,18 8,10 5))"
};
static std::string case_many_situations[2] = {
"POLYGON((2 6,2 14,10 18,18 14,18 6,16 5,14 4,12 3,10 2,8 3,6 4,4 5,2 6))",
"POLYGON((2 6,2 7,2 8,2 9,2 10,2 11,2 12,1 14"

View File

@ -181,6 +181,8 @@ void test_areal()
test_one<Polygon, Polygon, Polygon>("59_iet",
case_59[0], case_59[2], 1, 1, 14, 17.20833);
test_one<Polygon, Polygon, Polygon>("80",
case_80[0], case_80[1], 2, 2, 18, 129.0);
/*
test_one<Polygon, Polygon, Polygon>(102,
@ -383,6 +385,7 @@ void test_areal()
ticket_11725[0], ticket_11725[1],
1, 1, -1, 7.5);
#endif
test_one<Polygon, Polygon, Polygon>("mysql_21964079_1",
mysql_21964079_1[0], mysql_21964079_1[1],
2, 1, -1, 234.5);