@@ -24,6 +24,7 @@ TEST_CASE("geometry collection with point", "[NoDB]")
2424 c.add_geometry (geom::geometry_t {geom::point_t {1 , 1 }});
2525
2626 REQUIRE (geometry_type (geom) == " GEOMETRYCOLLECTION" );
27+ REQUIRE (geom.n_points () == 1 );
2728 REQUIRE (dimension (geom) == 0 );
2829 REQUIRE (num_geometries (geom) == 1 );
2930 REQUIRE (area (geom) == Approx (0.0 ));
@@ -46,6 +47,7 @@ TEST_CASE("geometry collection with multipoint", "[NoDB]")
4647 c.add_geometry (std::move (mpgeom));
4748
4849 REQUIRE (geometry_type (geom) == " GEOMETRYCOLLECTION" );
50+ REQUIRE (geom.n_points () == 4 );
4951 REQUIRE (dimension (geom) == 0 );
5052 REQUIRE (num_geometries (geom) == 1 );
5153 REQUIRE (area (geom) == Approx (0.0 ));
@@ -62,6 +64,7 @@ TEST_CASE("geometry collection with several geometries", "[NoDB]")
6264 c.add_geometry (geom::geometry_t {geom::point_t {2 , 2 }});
6365
6466 REQUIRE (geometry_type (geom) == " GEOMETRYCOLLECTION" );
67+ REQUIRE (geom.n_points () == 4 );
6568 REQUIRE (dimension (geom) == 1 );
6669 REQUIRE (num_geometries (geom) == 3 );
6770 REQUIRE (area (geom) == Approx (0.0 ));
@@ -83,6 +86,7 @@ TEST_CASE("geometry collection with polygon", "[NoDB]")
8386 geom::polygon_t {geom::ring_t {{1 , 1 }, {1 , 2 }, {2 , 2 }, {2 , 1 }, {1 , 1 }}}});
8487
8588 REQUIRE (geometry_type (geom) == " GEOMETRYCOLLECTION" );
89+ REQUIRE (geom.n_points () == 6 );
8690 REQUIRE (num_geometries (geom) == 2 );
8791 REQUIRE (area (geom) == Approx (1.0 ));
8892 REQUIRE (length (geom) == Approx (0.0 ));
@@ -100,6 +104,7 @@ TEST_CASE("create_collection from OSM data", "[NoDB]")
100104 auto const geom = geom::create_collection (buffer.buffer ());
101105
102106 REQUIRE (geometry_type (geom) == " GEOMETRYCOLLECTION" );
107+ REQUIRE (geom.n_points () == 8 );
103108 REQUIRE (dimension (geom) == 1 );
104109 REQUIRE (num_geometries (geom) == 3 );
105110
0 commit comments