mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 21:44:04 +00:00
[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:
parent
826045c3a1
commit
321d12c56a
@ -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"
|
||||
);
|
||||
}
|
||||
|
@ -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"
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user