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
(cherry-picked from 1e90786)
  • Loading branch information
manisandro authored and nyalldawson committed Mar 6, 2016
1 parent 1031172 commit e4fd090
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 e4fd090

Please sign in to comment.