mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 13:34:10 +00:00
[geometry] Fix ticket 7462, (unit tests)
[SVN r83482]
This commit is contained in:
parent
cad4707a7d
commit
61844d7bf2
@ -560,6 +560,13 @@ static std::string ticket_5103[2] =
|
||||
"POLYGON((-95269304 222758,-95260668 419862,-95234760 615696,-95192088 808228,-95132906 996442,-95057214 1178814,-94966028 1354074,-94860110 1520444,-94739968 1676908,-94606618 1822450,-94999048 2214880,-95165164 2033778,-95314770 1838706,-95446850 1631442,-95560388 1413510,-95654368 1186434,-95728282 951992,-95781368 711962,-95813626 468376,-95824294 222758,-95269304 222758))"
|
||||
};
|
||||
|
||||
static std::string ticket_7462[2] =
|
||||
{
|
||||
"POLYGON((0 0 , -0.3681253195 0.9297761917 , 2.421203136 2.034152031 , 2.789328575 1.104375958 , 0 0))",
|
||||
"POLYGON((2.76143527 1.093332171 , 2.076887131 1.822299719 , 4.263789177 3.875944376 , 4.948337555 3.146976948 , 2.76143527 1.093332171))"
|
||||
};
|
||||
|
||||
|
||||
static std::string ticket_8254[2] =
|
||||
{
|
||||
"POLYGON((0 0,-0.27224111308522275232 0.19250353717521062613,-0.27224111308522275232 0.96219700082478931691,0 1.154700537999999943,0 0))",
|
||||
|
@ -7,7 +7,7 @@
|
||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
//#define BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE
|
||||
#define BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE
|
||||
//#define BOOST_GEOMETRY_OVERLAY_NO_THROW
|
||||
//#define TEST_WITH_SVG
|
||||
//#define HAVE_TTMATH
|
||||
@ -945,6 +945,8 @@ void test_all(bool test_self_tangencies = true, bool test_mixed = false)
|
||||
test_traverse<polygon, polygon, operation_union>::apply("collinear_opposite_rl",
|
||||
1, 9, collinear_opposite_right[0], collinear_opposite_left[1]);
|
||||
|
||||
test_traverse<polygon, polygon, operation_intersection>::apply("ticket_7462", 1, 5.4736, ticket_7462[0], ticket_7462[1]);
|
||||
|
||||
#ifdef BOOST_GEOMETRY_OVERLAY_NO_THROW
|
||||
{
|
||||
// NOTE: currently throws (normally)
|
||||
|
Loading…
x
Reference in New Issue
Block a user