[partition] fix unit test

check was only done if SVG was enabled
This commit is contained in:
Barend Gehrels
2014-06-11 13:28:42 +02:00
parent 88db68b6f7
commit 269afda349

View File

@@ -384,8 +384,6 @@ void fill_boxes(Collection& collection, int seed, int size, int count)
}
}
void test_many_boxes(int seed, int size, int count)
{
typedef bg::model::box<point_item> box_type;
@@ -435,6 +433,10 @@ void test_many_boxes(int seed, int size, int count)
typedef svg_visitor<bg::svg_mapper<point_item> > partition_visitor_type;
partition_visitor_type partition_visitor(mapper);
#else
typedef bg::visit_no_policy box_visitor_type;
box_visitor_type box_visitor;
#endif
box_visitor<box_type> visitor;
bg::partition
@@ -445,14 +447,8 @@ void test_many_boxes(int seed, int size, int count)
BOOST_CHECK_EQUAL(visitor.count, expected_count);
BOOST_CHECK_CLOSE(visitor.area, expected_area, 0.001);
#endif
}
int test_main( int , char* [] )
{
test_all<bg::model::d2::point_xy<double> >();