Skip to content
Permalink
Browse files

Fix build

  • Loading branch information
nyalldawson committed Sep 5, 2015
1 parent 9133538 commit 969fc9c1ca63f2505b12838a86161675138a5207
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/core/testqgsexpressioncontext.cpp
@@ -417,15 +417,15 @@ void TestQgsExpressionContext::setFeature()
QCOMPARE( emptyContext.scopeCount(), 1 );
QVERIFY( emptyContext.hasVariable( QgsExpressionContext::EXPR_FEATURE ) );
QCOMPARE(( qvariant_cast<QgsFeature>( emptyContext.variable( QgsExpressionContext::EXPR_FEATURE ) ) ).id(), 50LL );
QCOMPARE( emptyContext.feature(), feature() );
QCOMPARE( emptyContext.feature().id(), 50LL );

QgsExpressionContext contextWithScope;
contextWithScope << new QgsExpressionContextScope();
contextWithScope.setFeature( feature );
QCOMPARE( contextWithScope.scopeCount(), 1 );
QVERIFY( contextWithScope.hasVariable( QgsExpressionContext::EXPR_FEATURE ) );
QCOMPARE(( qvariant_cast<QgsFeature>( contextWithScope.variable( QgsExpressionContext::EXPR_FEATURE ) ) ).id(), 50LL );
QCOMPARE( contextWithScope.feature(), feature() );
QCOMPARE( contextWithScope.feature().id(), 50LL );
}

void TestQgsExpressionContext::setFields()

0 comments on commit 969fc9c

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