Skip to content

Commit e4fd090

Browse files
manisandronyalldawson
authored andcommitted
Extend TestQgsGeometry::isEmpty to also test empty geometry collection
(cherry-picked from 1e90786)
1 parent 1031172 commit e4fd090

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/src/core/testqgsgeometry.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "qgslinestringv2.h"
3535
#include "qgspolygonv2.h"
3636
#include "qgscircularstringv2.h"
37+
#include "qgsgeometrycollectionv2.h"
3738

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

361362
geom.setGeometry( 0 );
362363
QVERIFY( geom.isEmpty() );
364+
365+
QgsGeometryCollectionV2 collection;
366+
QVERIFY( collection.isEmpty() );
363367
}
364368

365369
void TestQgsGeometry::pointV2()

0 commit comments

Comments
 (0)