Skip to content

Commit

Permalink
Fix TestQgsMultiPoint::boundingBox expectance on boundingbox of empty…
Browse files Browse the repository at this point in the history
… multipoint
  • Loading branch information
strk committed Oct 8, 2023
1 parent 8c62d89 commit c07896b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/core/geometry/testqgsmultipoint.cpp
Expand Up @@ -1015,7 +1015,7 @@ void TestQgsMultiPoint::boundingBox()
QCOMPARE( mp.boundingBox(), QgsRectangle( 0, 0, 1, 2 ) );

mp.clear();
QCOMPARE( mp.boundingBox(), QgsRectangle( std::numeric_limits< double >::quiet_NaN(), std::numeric_limits< double >::quiet_NaN(), std::numeric_limits< double >::quiet_NaN(), std::numeric_limits< double >::quiet_NaN() ) );
QCOMPARE( mp.boundingBox(), QgsRectangle() );

mp.addGeometry( new QgsPoint( 1, 2 ) );
QCOMPARE( mp.boundingBox(), QgsRectangle( 1, 2, 1, 2 ) );
Expand Down

0 comments on commit c07896b

Please sign in to comment.