void test_more_empty_input_pointlike_linear(Strategy const& strategy) { #ifdef BOOST_GEOMETRY_TEST_DEBUG std::cout << std::endl; std::cout << "testing on empty inputs... " << std::flush; #endif bg::model::linestring<Point> line_empty; bg::model::multi_point<Point> multipoint_empty; bg::model::multi_linestring<bg::model::linestring<Point> > multiline_empty; Point point = from_wkt<Point>("point(0 0)"); bg::model::linestring<Point> line = from_wkt<bg::model::linestring<Point> >("linestring(0 0,1 1)"); // 1st geometry is empty test_empty_input(multipoint_empty, line, strategy); // 2nd geometry is empty test_empty_input(point, line_empty, strategy); test_empty_input(point, multiline_empty, strategy); // both geometries are empty test_empty_input(multipoint_empty, line_empty, strategy); test_empty_input(multipoint_empty, multiline_empty, strategy); #ifdef BOOST_GEOMETRY_TEST_DEBUG std::cout << "done!" << std::endl; #endif }
void test_more_empty_input_pointlike_areal(Strategy const& strategy) { #ifdef BOOST_GEOMETRY_TEST_DEBUG std::cout << std::endl; std::cout << "testing on empty inputs... " << std::flush; #endif bg::model::multi_point<Point> multipoint_empty; bg::model::polygon<Point> polygon_empty; bg::model::multi_polygon<bg::model::polygon<Point> > multipolygon_empty; bg::model::ring<Point> ring_empty; Point point = from_wkt<Point>("point(0 0)"); bg::model::polygon<Point> polygon = from_wkt<bg::model::polygon<Point> >("polygon((0 0,1 0,0 1))"); bg::model::ring<Point> ring = from_wkt<bg::model::ring<Point> >("polygon((0 0,1 0,0 1))"); // 1st geometry is empty test_empty_input(multipoint_empty, polygon, strategy); test_empty_input(multipoint_empty, ring, strategy); // 2nd geometry is empty test_empty_input(point, polygon_empty, strategy); test_empty_input(point, multipolygon_empty, strategy); test_empty_input(point, ring_empty, strategy); // both geometries are empty test_empty_input(multipoint_empty, polygon_empty, strategy); test_empty_input(multipoint_empty, multipolygon_empty, strategy); test_empty_input(multipoint_empty, ring_empty, strategy); #ifdef BOOST_GEOMETRY_TEST_DEBUG std::cout << "done!" << std::endl; #endif }
void test_more_empty_input_pointlike_pointlike(Strategy const& strategy) { #ifdef BOOST_GEOMETRY_TEST_DEBUG std::cout << std::endl; std::cout << "testing on empty inputs... " << std::flush; #endif bg::model::multi_point<Point> multipoint_empty; Point point = from_wkt<Point>("POINT(0 0)"); // 1st geometry is empty test_empty_input(multipoint_empty, point, strategy); // 2nd geometry is empty test_empty_input(point, multipoint_empty, strategy); // both geometries are empty test_empty_input(multipoint_empty, multipoint_empty, strategy); #ifdef BOOST_GEOMETRY_TEST_DEBUG std::cout << "done!" << std::endl; #endif }