From b040410c5e321bfe15e7c35e29f62dbabb55bec8 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 22 Jun 2016 15:26:02 +0200 Subject: [PATCH] Fix comment about precision loss Thanks Even for helping with this --- tests/src/app/testqgsmaptoolidentifyaction.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/src/app/testqgsmaptoolidentifyaction.cpp b/tests/src/app/testqgsmaptoolidentifyaction.cpp index 477839ec6ca..ad50e3432c6 100644 --- a/tests/src/app/testqgsmaptoolidentifyaction.cpp +++ b/tests/src/app/testqgsmaptoolidentifyaction.cpp @@ -312,7 +312,8 @@ void TestQgsMapToolIdentifyAction::identifyRasterFloat32() QCOMPARE( testIdentifyRaster( tempLayer.data(), 1.5, 0.5 ), QString( "-999.987" ) ); - // More than 6 significant digits : precision loss in Float32 + // More than 6 significant digits for corresponding value in .asc: + // precision loss in Float32 QCOMPARE( testIdentifyRaster( tempLayer.data(), 2.5, 0.5 ), QString( "1.234568" ) ); // in .asc file : 1.2345678 QCOMPARE( testIdentifyRaster( tempLayer.data(), 3.5, 0.5 ), QString( "123456" ) ); @@ -323,7 +324,8 @@ void TestQgsMapToolIdentifyAction::identifyRasterFloat32() // More than 6 significant digits: no precision loss here for that particular value QCOMPARE( testIdentifyRaster( tempLayer.data(), 5.5, 0.5 ), QString( "-999.9876" ) ); - // More than 6 significant digits: no precision loss here + // More than 6 significant digits for corresponding value in .asc: + // precision loss in Float32 QCOMPARE( testIdentifyRaster( tempLayer.data(), 6.5, 0.5 ), QString( "1.234568" ) ); // in .asc file : 1.2345678901234 }