From 79d8a2c59b28fea0431b291fcd78ebc5e86be585 Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Tue, 22 Jul 2014 15:43:18 +0300 Subject: [PATCH] [test][algorithms][disjoint] add test cases with empty multipoints; enable tests for the combinations: * point / multipoint * multipoint / multipoint * multipoint / segment * multipoint / box --- test/algorithms/disjoint_coverage.cpp | 29 ++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/test/algorithms/disjoint_coverage.cpp b/test/algorithms/disjoint_coverage.cpp index 5ce46ee32..9f1772f66 100644 --- a/test/algorithms/disjoint_coverage.cpp +++ b/test/algorithms/disjoint_coverage.cpp @@ -151,6 +151,10 @@ inline void test_point_multipoint() tester::apply(from_wkt

("POINT(0 0)"), from_wkt("MULTIPOINT(1 1,2 2)"), true); + + tester::apply(from_wkt

("POINT(0 0)"), + from_wkt("MULTIPOINT()"), + true); } template @@ -167,6 +171,14 @@ inline void test_multipoint_multipoint() tester::apply(from_wkt("MULTIPOINT(0 0,1 0)"), from_wkt("MULTIPOINT(1 1,2 2)"), true); + + tester::apply(from_wkt("MULTIPOINT()"), + from_wkt("MULTIPOINT(1 1,2 2)"), + true); + + tester::apply(from_wkt("MULTIPOINT(0 0,1 0)"), + from_wkt("MULTIPOINT()"), + true); } //============================================================================ @@ -258,6 +270,10 @@ inline void test_multipoint_segment() tester::apply(from_wkt("MULTIPOINT(1 1,2 2)"), from_wkt("SEGMENT(0 0,2 0)"), true); + + tester::apply(from_wkt("MULTIPOINT()"), + from_wkt("SEGMENT(0 0,2 0)"), + true); } template @@ -396,6 +412,10 @@ inline void test_multipoint_box() tester::apply(from_wkt("MULTIPOINT(3 3,4 4)"), from_wkt("BOX(0 0,2 2)"), true); + + tester::apply(from_wkt("MULTIPOINT()"), + from_wkt("BOX(0 0,2 2)"), + true); } template @@ -1233,10 +1253,9 @@ inline void test_pointlike_pointlike() typedef bg::model::point point_type; test_point_point(); - // not implemented yet - // test_point_multipoint(); + test_point_multipoint(); - // test_multipoint_multipoint(); + test_multipoint_multipoint(); } template @@ -1251,7 +1270,7 @@ inline void test_pointlike_linear() // not implemented yet // test_multipoint_linestring(); // test_multipoint_multilinestring(); - // test_multipoint_segment(); + test_multipoint_segment(); } template @@ -1268,7 +1287,7 @@ inline void test_pointlike_areal() // test_multipoint_polygon(); // test_multipoint_multipolygon(); // test_multipoint_ring(); - // test_multipoint_box(); + test_multipoint_box(); } template