Skip to content
Permalink
Browse files
Add test for adding empty circular string
  • Loading branch information
nyalldawson committed Apr 27, 2021
1 parent 287baa7 commit da76c99c343c5fa651cc868b1934775951e4274f
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/src/core/testqgsgeometry.cpp
@@ -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 ) );

0 comments on commit da76c99

Please sign in to comment.