mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 13:34:10 +00:00
[test][relate] Add test for very small segments.
This commit is contained in:
parent
1289aad4e5
commit
ed6b8e38b9
@ -185,6 +185,19 @@ void test_linestring_linestring()
|
||||
// Point/Point
|
||||
//test_geometry<ls, ls>("LINESTRING(0 0)", "LINESTRING(0 0)", "0FFFFFFF2");
|
||||
|
||||
// https://svn.boost.org/trac/boost/ticket/10904
|
||||
// very small segments
|
||||
if ( boost::is_floating_point<typename bg::coordinate_type<ls>::type>::value )
|
||||
{
|
||||
test_geometry<ls, ls>("LINESTRING(5.6956521739130430148634331999347 -0.60869565217391330413931882503675,5.5 -0.50000000000000066613381477509392)",
|
||||
"LINESTRING(5.5 -0.50000000000000066613381477509392,5.5 -0.5)",
|
||||
"FF1F00102");
|
||||
|
||||
test_geometry<ls, ls>("LINESTRING(-3.2333333333333333925452279800083 5.5999999999999978683717927196994,-3.2333333333333333925452279800083 5.5999999999999996447286321199499)",
|
||||
"LINESTRING(-3.2333333333333325043668082798831 5.5999999999999996447286321199499,-3.2333333333333333925452279800083 5.5999999999999996447286321199499)",
|
||||
"FF1F00102");
|
||||
}
|
||||
|
||||
// OTHER MASKS
|
||||
{
|
||||
namespace bgdr = bg::detail::relate;
|
||||
|
Loading…
x
Reference in New Issue
Block a user