Skip to content
Permalink
Browse files

Extend TestQgsGeometry::isEmpty to also test empty geometry collection

  • Loading branch information
manisandro committed Mar 6, 2016
1 parent 4c0e78a commit 1e90786be770868b90887cd1bb98c041ec0eee01
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/src/core/testqgsgeometry.cpp
@@ -34,6 +34,7 @@
#include "qgslinestringv2.h"
#include "qgspolygonv2.h"
#include "qgscircularstringv2.h"
#include "qgsgeometrycollectionv2.h"

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

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

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

void TestQgsGeometry::pointV2()

0 comments on commit 1e90786

Please sign in to comment.
You can’t perform that action at this time.