Skip to content
Permalink
Browse files

Update test

  • Loading branch information
nyalldawson committed Feb 5, 2021
1 parent 270961f commit a3e521294ab5c38bf7ba9301926aa05ae3719461
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/src/core/testqgsgeometry.cpp
@@ -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()

0 comments on commit a3e5212

Please sign in to comment.