Skip to content
Permalink
Browse files

Update test

  • Loading branch information
nyalldawson committed Feb 8, 2021
1 parent 43b5f00 commit f5a2d45242eab3a4a726d92a4264f55fd617a204
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 f5a2d45

Please sign in to comment.