Skip to content
Permalink
Browse files

Adapt numbers in test for QgsLineStringV2::sumUpArea

(forward port from df0f97)
  • Loading branch information
mhugent authored and nyalldawson committed Jan 9, 2017
1 parent 7107c16 commit d3da17910d05e37a959a549eec217a6be79cb6f9
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/src/core/testqgsgeometry.cpp
@@ -2128,13 +2128,13 @@ void TestQgsGeometry::lineString()
QCOMPARE( area, 1.0 );
l36.setPoints( QgsPointSequence() << QgsPointV2( 5, 10 ) << QgsPointV2( 10, 10 ) );
l36.sumUpArea( area );
QCOMPARE( area, 1.0 );
QVERIFY( qgsDoubleNear( area, -24 ) );
l36.setPoints( QgsPointSequence() << QgsPointV2( 0, 0 ) << QgsPointV2( 2, 0 ) << QgsPointV2( 2, 2 ) );
l36.sumUpArea( area );
QVERIFY( qgsDoubleNear( area, 3.0 ) );
QVERIFY( qgsDoubleNear( area, -22 ) );
l36.setPoints( QgsPointSequence() << QgsPointV2( 0, 0 ) << QgsPointV2( 2, 0 ) << QgsPointV2( 2, 2 ) << QgsPointV2( 0, 2 ) );
l36.sumUpArea( area );
QVERIFY( qgsDoubleNear( area, 7.0 ) );
QVERIFY( qgsDoubleNear( area, -18 ) );

//boundingBox - test that bounding box is updated after every modification to the line string
QgsLineString l37;

0 comments on commit d3da179

Please sign in to comment.
You can’t perform that action at this time.