Skip to content
Permalink
Browse files

add tests for median output data type

(cherry picked from commit 7ebb66a)
  • Loading branch information
root676 authored and nyalldawson committed Nov 15, 2020
1 parent f43dadc commit b31e5695d8f8ebde5ca179738b4b5b53f41e886d
@@ -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()
Binary file not shown.

0 comments on commit b31e569

Please sign in to comment.
You can’t perform that action at this time.