Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make a test less GEOS version sensitive
  • Loading branch information
nyalldawson committed Nov 2, 2021
1 parent 0fc9a39 commit acc0495
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/src/geometry_checker/testqgsgeometrychecks.cpp
Expand Up @@ -612,7 +612,9 @@ void TestQgsGeometryChecks::testAllowedGaps()
}
else
{
QCOMPARE( f.geometry().asWkt( 4 ), QgsGeometry::fromWkt( "Polygon ((0.246 -0.8659, 0.3939 -0.77, 0.26 -0.8839, 0.27 -0.9998, 0.246 -0.8659))" ).asWkt( 4 ) );
QgsGeometry res = f.geometry();
res.normalize();
QCOMPARE( res.asWkt( 4 ), QgsGeometry::fromWkt( "Polygon ((0.246 -0.8659, 0.3939 -0.77, 0.26 -0.8839, 0.27 -0.9998, 0.246 -0.8659))" ).asWkt( 4 ) );
}

// Run check again after adding the gap geometry to the allowed gaps layer: one less error
Expand Down

0 comments on commit acc0495

Please sign in to comment.