Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for QgsGeometryCollection::vertexAt with negative part index
  • Loading branch information
agiudiceandrea authored and github-actions[bot] committed Apr 17, 2023
1 parent c7b3f6f commit 586dbd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/core/geometry/testqgsgeometrycollection.cpp
Expand Up @@ -59,6 +59,8 @@ void TestQgsGeometryCollection::geometryCollection()
QCOMPARE( c1.vertexCount( 0, 0 ), 0 );
QCOMPARE( c1.vertexCount( 0, 1 ), 0 );
QCOMPARE( c1.vertexCount( 1, 0 ), 0 );
// no crash!
QCOMPARE( c1.vertexAt( QgsVertexId( -1, -1, -1 ) ), QgsPoint() );

//addGeometry

Expand Down

0 comments on commit 586dbd7

Please sign in to comment.