Skip to content
Permalink
Browse files

adapt tests

  • Loading branch information
roya0045 committed Nov 12, 2020
1 parent 892e00e commit 820f3b9bc7086c9327d7c14011939aa6fb42f064
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/src/core/testqgsexpression.cpp
@@ -3333,7 +3333,8 @@ class TestQgsExpression: public QObject

QCOMPARE( QgsExpression( "array_get(\"strings\", 1)" ).evaluate( &context ), QVariant( "two" ) );
QCOMPARE( QgsExpression( "array_get(\"strings\", 2)" ).evaluate( &context ), QVariant() );
QCOMPARE( QgsExpression( "array_get(\"strings\", -1)" ).evaluate( &context ), QVariant() );
QCOMPARE( QgsExpression( "array_get(\"strings\", -1)" ).evaluate( &context ), QVariant( "two" ) );
QCOMPARE( QgsExpression( "array_get(\"strings\", -4)" ).evaluate( &context ), QVariant() );

QStringList appendExpected = array;
appendExpected << QStringLiteral( "three" );

0 comments on commit 820f3b9

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