mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-12 14:01:47 +00:00
[test] add number of points to unit test settings
This commit is contained in:
parent
96d0cd8646
commit
78735951c8
@ -100,11 +100,13 @@ struct ut_settings
|
|||||||
double tolerance;
|
double tolerance;
|
||||||
bool test_validity;
|
bool test_validity;
|
||||||
bool test_area;
|
bool test_area;
|
||||||
|
int points_per_circle;
|
||||||
|
|
||||||
explicit ut_settings(double tol = 0.01, bool val = true)
|
explicit ut_settings(double tol = 0.01, bool val = true, int points = 88)
|
||||||
: tolerance(tol)
|
: tolerance(tol)
|
||||||
, test_validity(val)
|
, test_validity(val)
|
||||||
, test_area(true)
|
, test_area(true)
|
||||||
|
, points_per_circle(points)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
static inline ut_settings ignore_validity()
|
static inline ut_settings ignore_validity()
|
||||||
@ -411,7 +413,7 @@ void test_one(std::string const& caseid, std::string const& wkt,
|
|||||||
|
|
||||||
|
|
||||||
bg::strategy::buffer::side_straight side_strategy;
|
bg::strategy::buffer::side_straight side_strategy;
|
||||||
bg::strategy::buffer::point_circle circle_strategy(88);
|
bg::strategy::buffer::point_circle circle_strategy(settings.points_per_circle);
|
||||||
|
|
||||||
bg::strategy::buffer::distance_asymmetric
|
bg::strategy::buffer::distance_asymmetric
|
||||||
<
|
<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user