@@ -32,6 +32,7 @@ TEST_CASE("multipoint_t with a single point", "[NoDB]")
3232 REQUIRE (dimension (geom) == 0 );
3333 REQUIRE (num_geometries (geom) == 1 );
3434 REQUIRE (area (geom) == Approx (0.0 ));
35+ REQUIRE (spherical_area (geom) == Approx (0.0 ));
3536 REQUIRE (length (geom) == Approx (0.0 ));
3637 REQUIRE (reverse (geom) == geom);
3738 REQUIRE (centroid (geom) == geom::geometry_t {point});
@@ -55,6 +56,7 @@ TEST_CASE("multipoint_t with several points", "[NoDB]")
5556 REQUIRE (geometry_type (geom) == " MULTIPOINT" );
5657 REQUIRE (num_geometries (geom) == 3 );
5758 REQUIRE (area (geom) == Approx (0.0 ));
59+ REQUIRE (spherical_area (geom) == Approx (0.0 ));
5860 REQUIRE (length (geom) == Approx (0.0 ));
5961 REQUIRE (reverse (geom) == geom);
6062 REQUIRE (centroid (geom) == geom::geometry_t {geom::point_t {2 , 1 }});
@@ -92,6 +94,7 @@ TEST_CASE("create_multipoint from OSM data", "[NoDB]")
9294 REQUIRE (c[3 ] == geom::point_t {3 , 1 });
9395
9496 REQUIRE (area (geom) == Approx (0.0 ));
97+ REQUIRE (spherical_area (geom) == Approx (0.0 ));
9598 REQUIRE (length (geom) == Approx (0.0 ));
9699 REQUIRE (centroid (geom) == geom::geometry_t {geom::point_t {2 , 1 }});
97100}
@@ -118,6 +121,7 @@ TEST_CASE("create_multipoint from OSM data with only a single point", "[NoDB]")
118121 REQUIRE (num_geometries (geom) == 1 );
119122 REQUIRE (geom.get <geom::point_t >() == geom::point_t {1 , 0 });
120123 REQUIRE (area (geom) == Approx (0.0 ));
124+ REQUIRE (spherical_area (geom) == Approx (0.0 ));
121125 REQUIRE (length (geom) == Approx (0.0 ));
122126 REQUIRE (centroid (geom) == geom::geometry_t {geom::point_t {1 , 0 }});
123127}
0 commit comments