Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 15, 2022
1 parent 38782bb commit 00cf01f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/core/testqgsrasterlayer.cpp
Expand Up @@ -382,9 +382,9 @@ void TestQgsRasterLayer::checkStats()
QCOMPARE( myStatistics.minimumValue, 0.0 );
QCOMPARE( myStatistics.maximumValue, 9.0 );
QGSCOMPARENEAR( myStatistics.mean, 4.5, 4 * std::numeric_limits<double>::epsilon() );
const double stdDev = 2.87228132326901431;
const double stdDev = 2.8722813233;
// TODO: verify why GDAL stdDev is so different from generic (2.88675)
QGSCOMPARENEAR( myStatistics.stdDev, stdDev, 0.00000000000001 );
QGSCOMPARENEAR( myStatistics.stdDev, stdDev, 0.000001 );

// limited extent
myStatistics = mpRasterLayer->dataProvider()->bandStatistics( 1,
Expand Down

0 comments on commit 00cf01f

Please sign in to comment.