Skip to content
Permalink
Browse files

add tests for median output data type

  • Loading branch information
root676 authored and nyalldawson committed Nov 15, 2020
1 parent 32a1474 commit 7ebb66a735e394b7414296d0ee9e3741cfbd6f0c
@@ -2344,6 +2344,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 7ebb66a

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