From c067399041756bc65f6325b6d68bf375bce8c2f0 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 26 Feb 2024 14:45:59 +0000 Subject: [PATCH] GeoJSON unit tests - require expected geometries are "empty". --- test/unit/datasource/geojson.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unit/datasource/geojson.cpp b/test/unit/datasource/geojson.cpp index afd8d84c6..7c35e7f1b 100644 --- a/test/unit/datasource/geojson.cpp +++ b/test/unit/datasource/geojson.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -140,6 +141,11 @@ TEST_CASE("geojson") std::string json(in); mapnik::geometry::geometry geom; CHECK(mapnik::json::from_geojson(json, geom)); + if (!mapnik::geometry::is_empty(geom)) + { + std::cerr << json << std::endl; + } + //REQUIRE(mapnik::geometry::is_empty(geom)); // round trip std::string json_out; CHECK(mapnik::util::to_geojson(json_out, geom));