diff --git a/test/algorithms/point_on_surface.cpp b/test/algorithms/point_on_surface.cpp index b393a35b8..b8569a859 100644 --- a/test/algorithms/point_on_surface.cpp +++ b/test/algorithms/point_on_surface.cpp @@ -125,6 +125,17 @@ void test_geometry(std::string const& case_id, std::string const& wkt, double ex } +template +void test_point_type() +{ + typedef bg::model::polygon polygon; + typedef bg::model::polygon cw_open_polygon; + typedef bg::model::polygon cw_closed_polygon; + + test_geometry("with_hole_cw_open", "POLYGON((0 0,0 9,9 9,9 0),(2 2,7 2,7 7,2 7))", 0, 0); + test_geometry("with_hole_cw_closed", "POLYGON((0 0,0 9,9 9,9 0,0 0),(2 2,7 2,7 7,2 7,2 2))", 0, 0); +} + template void test_all() { @@ -308,6 +319,8 @@ void test_all() int test_main(int, char* []) { test_all >(); + test_point_type >(); + test_point_type >(); return 0; }