Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Extend TestQgsGeometry::isEmpty to also test empty geometry collection
  • Loading branch information
manisandro committed Mar 6, 2016
1 parent 4c0e78a commit 1e90786
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/core/testqgsgeometry.cpp
Expand Up @@ -34,6 +34,7 @@
#include "qgslinestringv2.h"
#include "qgspolygonv2.h"
#include "qgscircularstringv2.h"
#include "qgsgeometrycollectionv2.h"

//qgs unit test utility class
#include "qgsrenderchecker.h"
Expand Down Expand Up @@ -360,6 +361,9 @@ void TestQgsGeometry::isEmpty()

geom.setGeometry( 0 );
QVERIFY( geom.isEmpty() );

QgsGeometryCollectionV2 collection;
QVERIFY( collection.isEmpty() );
}

void TestQgsGeometry::pointV2()
Expand Down

0 comments on commit 1e90786

Please sign in to comment.