Skip to content

Commit b040410

Browse files
committed
Fix comment about precision loss
Thanks Even for helping with this
1 parent 0a83f18 commit b040410

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/src/app/testqgsmaptoolidentifyaction.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,8 @@ void TestQgsMapToolIdentifyAction::identifyRasterFloat32()
312312

313313
QCOMPARE( testIdentifyRaster( tempLayer.data(), 1.5, 0.5 ), QString( "-999.987" ) );
314314

315-
// More than 6 significant digits : precision loss in Float32
315+
// More than 6 significant digits for corresponding value in .asc:
316+
// precision loss in Float32
316317
QCOMPARE( testIdentifyRaster( tempLayer.data(), 2.5, 0.5 ), QString( "1.234568" ) ); // in .asc file : 1.2345678
317318

318319
QCOMPARE( testIdentifyRaster( tempLayer.data(), 3.5, 0.5 ), QString( "123456" ) );
@@ -323,7 +324,8 @@ void TestQgsMapToolIdentifyAction::identifyRasterFloat32()
323324
// More than 6 significant digits: no precision loss here for that particular value
324325
QCOMPARE( testIdentifyRaster( tempLayer.data(), 5.5, 0.5 ), QString( "-999.9876" ) );
325326

326-
// More than 6 significant digits: no precision loss here
327+
// More than 6 significant digits for corresponding value in .asc:
328+
// precision loss in Float32
327329
QCOMPARE( testIdentifyRaster( tempLayer.data(), 6.5, 0.5 ), QString( "1.234568" ) ); // in .asc file : 1.2345678901234
328330
}
329331

0 commit comments

Comments
 (0)