Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add testcase for variance from Int32 raster data type
  • Loading branch information
root676 authored and nyalldawson committed Sep 25, 2020
1 parent db6ebf1 commit 0fe9955
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/src/analysis/testqgsprocessingalgs.cpp
Expand Up @@ -2286,6 +2286,18 @@ void TestQgsProcessingAlgs::cellStatistics_data()
<< true
<< QStringLiteral( "/cellstatistics_mean_ignore_nodata_result.tif" )
<< Qgis::Float64;

/*
* Testcase 16: Sum (integer)
*/
QTest::newRow( "testcase_16" )
<< QStringList( {"/raster/statisticsRas1_int32.tif", "/raster/statisticsRas2_int32.tif", "/raster/statisticsRas3_int32.tif"} )
<< QStringLiteral( "/raster/statisticsRas1_int32.tif" )
<< 5
<< false
<< QStringLiteral( "/cellstatistics_variance_result_float32.tif" )
<< Qgis::Float32;

}

void TestQgsProcessingAlgs::cellStatistics()
Expand Down

0 comments on commit 0fe9955

Please sign in to comment.