Skip to content
Permalink
Browse files

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 e4fd0905b798ee815f8a64e8a3b61f17f3e38bde
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 e4fd090

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