[test][set ops L/L] add two more test cases with spikes (examples sent by Adam on the BG mailing list)

This commit is contained in:
Menelaos Karavelas 2014-05-05 14:45:26 +03:00
parent 826045c3a1
commit 321d12c56a
2 changed files with 31 additions and 0 deletions

View File

@ -1213,4 +1213,19 @@ BOOST_AUTO_TEST_CASE( test_difference_ml_ml_spikes )
from_wkt<ML>("MULTILINESTRING((1 0,1 1))"),
"mlmldf-spikes-17"
);
// test cases sent by Adam on the mailing list (equal slikes)
tester::apply
(from_wkt<ML>("MULTILINESTRING((0 0,1 1,0 0))"),
from_wkt<ML>("MULTILINESTRING((0 0,1 1,0 0))"),
from_wkt<ML>("MULTILINESTRING()"),
"mlmldf-spikes-18"
);
tester::apply
(from_wkt<ML>("MULTILINESTRING((0 0,1 1,0 0))"),
from_wkt<ML>("MULTILINESTRING((1 1,0 0,1 1))"),
from_wkt<ML>("MULTILINESTRING()"),
"mlmldf-spikes-19"
);
}

View File

@ -1520,4 +1520,20 @@ BOOST_AUTO_TEST_CASE( test_intersection_ml_ml_spikes )
from_wkt<ML>("MULTILINESTRING((2 1,1 1,2 1))"),
"mlmli-spikes-17"
);
// test cases sent by Adam on the mailing list (equal slikes)
tester::apply
(from_wkt<ML>("MULTILINESTRING((0 0,1 1,0 0))"),
from_wkt<ML>("MULTILINESTRING((0 0,1 1,0 0))"),
from_wkt<ML>("MULTILINESTRING((0 0,1 1,0 0))"),
"mlmli-spikes-18"
);
tester::apply
(from_wkt<ML>("MULTILINESTRING((0 0,1 1,0 0))"),
from_wkt<ML>("MULTILINESTRING((1 1,0 0,1 1))"),
from_wkt<ML>("MULTILINESTRING((0 0,1 1,0 0))"),
from_wkt<ML>("MULTILINESTRING((1 1,0 0,1 1))"),
"mlmli-spikes-19"
);
}