Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update test
  • Loading branch information
nyalldawson committed Feb 8, 2021
1 parent 43b5f00 commit f5a2d45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/src/core/testqgsgeometry.cpp
Expand Up @@ -617,8 +617,9 @@ void TestQgsGeometry::geos()
// Empty geometry
QgsPoint point;
asGeos = QgsGeos::asGeos( &point );
res = QgsGeometry( QgsGeos::fromGeos( asGeos.get() ) );
QCOMPARE( res.asWkt(), QgsPoint().asWkt( ) );
// should be treated as a null geometry, not an empty point in order to maintain api compatibility with
// earlier QGIS 3.x releases
QVERIFY( !QgsGeos::fromGeos( asGeos.get() ) );
}

void TestQgsGeometry::point()
Expand Down

0 comments on commit f5a2d45

Please sign in to comment.