Skip to content
Permalink
Browse files

Add test

  • Loading branch information
pblottiere authored and nyalldawson committed Jun 17, 2020
1 parent 7ad14fc commit 7bed52c7f96aaaa22d4a68000612fd9bd4dd861d
Showing with 6 additions and 1 deletion.
  1. +6 −1 tests/src/analysis/testqgsrastercalculator.cpp
@@ -589,7 +589,6 @@ void TestQgsRasterCalculator::findNodes()
node = QgsRasterCalcNode::parseRasterCalcString( QStringLiteral( "max(-1,1)" ), errorString );
QVERIFY( node );
QVERIFY( errorString.isEmpty() );

}

void TestQgsRasterCalculator::testRasterEntries()
@@ -743,6 +742,12 @@ void TestQgsRasterCalculator::toString()
// Test regression #32477
QCOMPARE( _test( QStringLiteral( R"raw(("r@1"<100.09)*0.1)raw" ), true ),
QString( R"raw(( float ) ( ( float ) "r@1" < ( float ) 100.09 ) * ( float ) 0.1)raw" ) );

QString error;
std::unique_ptr< QgsRasterCalcNode > calcNode( QgsRasterCalcNode::parseRasterCalcString( QStringLiteral( "min( \"raster@1\" )" ), error ) );
QVERIFY( calcNode == nullptr );
calcNode.reset( QgsRasterCalcNode::parseRasterCalcString( QStringLiteral( "max( \"raster@1\" )" ), error ) );
QVERIFY( calcNode == nullptr );
}

void TestQgsRasterCalculator::calcFormulasWithReprojectedLayers()

0 comments on commit 7bed52c

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