Skip to content

Commit

Permalink
add tests for median output data type
Browse files Browse the repository at this point in the history
(cherry picked from commit 7ebb66a)
  • Loading branch information
root676 authored and nyalldawson committed Nov 15, 2020
1 parent f43dadc commit b31e569
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/src/analysis/testqgsprocessingalgs.cpp
Expand Up @@ -2309,6 +2309,17 @@ void TestQgsProcessingAlgs::cellStatistics_data()
<< QStringLiteral( "/cellstatistics_median_result_fourLayers.tif" )
<< Qgis::Float64;

/*
* Testcase 18: median with even number of layers and integer inputs
*/
QTest::newRow( "testcase_18" )
<< QStringList( {"/raster/statisticsRas1_int32.tif", "/raster/statisticsRas1_int32.tif", "/raster/statisticsRas2_int32.tif", "/raster/statisticsRas3_int32.tif"} )
<< QStringLiteral( "/raster/statisticsRas1_int32.tif" )
<< 3
<< false
<< QStringLiteral( "/cellstatistics_median_result_fourLayers_float32.tif" )
<< Qgis::Float32;

}

void TestQgsProcessingAlgs::cellStatistics()
Expand Down
Binary file not shown.

0 comments on commit b31e569

Please sign in to comment.