Skip to content

Commit

Permalink
change comments in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and nyalldawson committed Apr 29, 2021
1 parent 0a48e80 commit 3790971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/core/testqgsgeometryutils.cpp
Expand Up @@ -1626,7 +1626,7 @@ void TestQgsGeometryUtils::transferFirstZValueToPoint()
ret = QgsGeometryUtils::transferFirstZValueToPoint( QgsPointSequence() << QgsPoint( 0, 2, 5 ), point );
QCOMPARE( ret, true );
QCOMPARE( point.wkbType(), QgsWkbTypes::PointZ );
QCOMPARE( point.z(), 5.0 ); // now point.z == 5. Shouldn't the current Z be left if the point is already of type PointZ?
QCOMPARE( point.z(), 5.0 ); // now point.z == 5.

// Add Z to a PointM
QgsPoint pointM( QgsWkbTypes::PointM, 1, 2, 0, 3 );
Expand Down Expand Up @@ -1659,7 +1659,7 @@ void TestQgsGeometryUtils::transferFirstMValueToPoint()
ret = QgsGeometryUtils::transferFirstMValueToPoint( QgsPointSequence() << QgsPoint( QgsWkbTypes::PointM, 0, 2, 0, 5 ), point );
QCOMPARE( ret, true );
QCOMPARE( point.wkbType(), QgsWkbTypes::PointM );
QCOMPARE( point.m(), 5.0 ); // now point.z == 5. Shouldn't the current M be left if the point is already of type PointM?
QCOMPARE( point.m(), 5.0 ); // now point.m == 5

// Add M to a PointZ
QgsPoint pointZ( 1, 2, 4 );
Expand Down

0 comments on commit 3790971

Please sign in to comment.