From 0e9f8b06a31495c5e82aac56ca6180da67dad1fc Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 26 Feb 2024 14:44:19 +0000 Subject: [PATCH] Fix `is_empty` unit test e.g if multi geometry consists of empty geometries it is "empty". --- test/unit/geometry/is_empty.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/geometry/is_empty.cpp b/test/unit/geometry/is_empty.cpp index 0692b2c9d..63caef803 100644 --- a/test/unit/geometry/is_empty.cpp +++ b/test/unit/geometry/is_empty.cpp @@ -118,7 +118,7 @@ TEST_CASE("geometry is_empty") mapnik::geometry::multi_line_string geom; mapnik::geometry::line_string line; geom.emplace_back(std::move(line)); - REQUIRE(!mapnik::geometry::is_empty(geom)); + REQUIRE(mapnik::geometry::is_empty(geom)); } } @@ -134,7 +134,7 @@ TEST_CASE("geometry is_empty") mapnik::geometry::linear_ring ring; poly.push_back(std::move(ring)); geom.emplace_back(std::move(poly)); - REQUIRE(!mapnik::geometry::is_empty(geom)); + REQUIRE(mapnik::geometry::is_empty(geom)); } } }