Skip to content
Permalink
Browse files
change comments in tests
  • Loading branch information
lbartoletti authored and nyalldawson committed Apr 29, 2021
1 parent 0a48e80 commit 379097191574363a40141ee5e89d3f19206d61a8
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/core/testqgsgeometryutils.cpp
@@ -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 );
@@ -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 );

0 comments on commit 3790971

Please sign in to comment.