Skip to content

Commit

Permalink
Add test for adding empty circular string
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 27, 2021
1 parent 287baa7 commit da76c99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/core/testqgsgeometry.cpp
Expand Up @@ -3175,6 +3175,10 @@ void TestQgsGeometry::circularStringAppend()
QCOMPARE( l10.numPoints(), 0 );

std::unique_ptr<QgsCircularString> toAppend( new QgsCircularString() );
l10.append( toAppend.get() );
QVERIFY( l10.isEmpty() );
QCOMPARE( l10.numPoints(), 0 );

toAppend->setPoints( QgsPointSequence() << QgsPoint( 1, 2 )
<< QgsPoint( 11, 12 )
<< QgsPoint( 21, 22 ) );
Expand Down

0 comments on commit da76c99

Please sign in to comment.