Skip to content

Commit

Permalink
Minor buffer unit test refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Feb 7, 2025
1 parent 69dc4fe commit f9bd0e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/operation/buffer/BufferOpTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9bd0e7

Please sign in to comment.