mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 13:34:10 +00:00
[test][relate][crosses] Add test for linear spike crossing another linestring.
This commit is contained in:
parent
6386400075
commit
402e939a5c
@ -50,6 +50,9 @@ void test_ll()
|
||||
test_geometry<mls, ls>("MULTILINESTRING((0 1,4 1),(0 2,4 2))", "LINESTRING(0 0,2 2,4 4)", true);
|
||||
|
||||
test_geometry<mls, mls>("MULTILINESTRING((0 0,2 2,4 4),(3 0,3 4))", "MULTILINESTRING((0 1,4 1),(0 2,4 2))", true);
|
||||
|
||||
// spike - boundary and interior on the same point
|
||||
test_geometry<ls, ls>("LINESTRING(3 7, 8 8, 2 6)", "LINESTRING(5 7, 10 7, 0 7)", true);
|
||||
}
|
||||
|
||||
template <typename P>
|
||||
|
@ -221,6 +221,9 @@ void test_linestring_linestring()
|
||||
|| bgdr::mask9("F***T****")));
|
||||
BOOST_CHECK(bgdr::relate(ls2, ls4, bgdr::mask9("T*F**F***"))); // within
|
||||
}
|
||||
|
||||
// spike - boundary and interior on the same point
|
||||
test_geometry<ls, ls>("LINESTRING(3 7, 8 8, 2 6)", "LINESTRING(5 7, 10 7, 0 7)", "0010F0102");
|
||||
}
|
||||
|
||||
template <typename P>
|
||||
|
Loading…
x
Reference in New Issue
Block a user