Skip to content
Permalink
Browse files

fix test with old Qt

  • Loading branch information
3nids authored and nyalldawson committed Oct 16, 2020
1 parent 28a8583 commit e1319a17095309e6a3b958b4372b77fca7b0c4f9
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgsexpression.cpp
@@ -2044,7 +2044,7 @@ class TestQgsExpression: public QObject
context.setFeature( f );
QgsExpression exp( QString( "with_variable('my_var',\"col1\", aggregate(layer:='aggregate_layer', aggregate:='concatenate_unique', expression:=\"col2\", filter:=\"col1\"=@my_var))" ) );
QString res = exp.evaluate( &context ).toString();
QCOMPARE( res, f.attribute( "col2" ) );
QCOMPARE( res, f.attribute( "col2" ).toString() );

// also test for generic aggregates
exp = QString( "with_variable('my_var',\"col1\", sum(expression:=\"col1\", filter:=\"col1\"=@my_var))" );

0 comments on commit e1319a1

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