Skip to content
Permalink
Browse files

Add test

  • Loading branch information
m-kuhn committed Sep 29, 2017
1 parent a97d846 commit 050119c2baf5c72630791edaee7c62dfa6c2cf7a
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/src/core/testqgsexpression.cpp
@@ -425,6 +425,13 @@ class TestQgsExpression: public QObject
mPointsLayer->getFeatures( QgsFeatureRequest().setFilterExpression( "Pilots = 1" ) ).nextFeature( feature );
context.setFeature( feature );
QCOMPARE( expression.evaluate( &context ).toString(), QStringLiteral( "one" ) );


QgsExpression expression4( "represent_value('Class')" );
if ( expression4.hasParserError() )
qDebug() << expression4.parserErrorString();
Q_ASSERT( !expression4.hasParserError() );
Q_ASSERT( expression4.hasEvalError() );
}

void evaluation_data()

0 comments on commit 050119c

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