[geos-commits] [SCM] GEOS branch main updated. f9bd0e7f21fd50a1062cd3a67e738d8b1ed0f32d

git at osgeo.org git at osgeo.org
Thu Feb 6 16:18:34 PST 2025


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, main has been updated
       via  f9bd0e7f21fd50a1062cd3a67e738d8b1ed0f32d (commit)
      from  69dc4fe5558f24e0d70ee2cf036e1b0cd761a41d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f9bd0e7f21fd50a1062cd3a67e738d8b1ed0f32d
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Thu Feb 6 16:18:14 2025 -0800

    Minor buffer unit test refactoring

diff --git a/tests/unit/operation/buffer/BufferOpTest.cpp b/tests/unit/operation/buffer/BufferOpTest.cpp
index 2e1fa065a..f67d1a12b 100644
--- a/tests/unit/operation/buffer/BufferOpTest.cpp
+++ b/tests/unit/operation/buffer/BufferOpTest.cpp
@@ -472,10 +472,10 @@ void object::test<19>
     std::string wkt0("MULTIPOLYGON (((30 18, 14 0, 0 13, 16 30, 30 18)), ((180 210, 60 50, 154 6, 270 40, 290 130, 250 190, 180 210)))");
     auto g0(wktreader.read(wkt0));
 
-    ensure( 2 == g0->buffer( -9 )->getNumGeometries() );
-    ensure( 1 == g0->buffer( -10 )->getNumGeometries() );
-    ensure( 1 == g0->buffer( -15 )->getNumGeometries() );
-    ensure( 1 == g0->buffer( -18 )->getNumGeometries() );
+    checkNumGeoms( *g0->buffer( -9 ), 2 );
+    checkNumGeoms( *g0->buffer( -10 ), 1 );
+    checkNumGeoms( *g0->buffer( -15 ), 1 );
+    checkNumGeoms( *g0->buffer( -18 ), 1 );
 }
 
 // Test for buffer inverted ring check optimization

-----------------------------------------------------------------------

Summary of changes:
 tests/unit/operation/buffer/BufferOpTest.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list