Skip to content
Permalink
Browse files

Fix failing test

  • Loading branch information
uclaros authored and nyalldawson committed Dec 28, 2020
1 parent 5eb2c97 commit 7cdb694d06eed9761951c69e43b17f49c93dd6c5
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgsexpression.cpp
@@ -1646,7 +1646,7 @@ class TestQgsExpression: public QObject
QTest::newRow( "array_max(array(-1, 0, 1, 2))" ) << QStringLiteral( "array_max(array(-1, 0, 1, 2))" ) << false << QVariant( 2 );
QTest::newRow( "array_max(array(make_date(2020,12,11),make_date(2020,12,12),make_date(2020,12,13)))" ) << QStringLiteral( "array_max(array(make_date(2020,12,11),make_date(2020,12,12),make_date(2020,12,13)))" ) << false << QVariant( QDate( 2020, 12, 13 ) );
QTest::newRow( "array_majority(array())" ) << QStringLiteral( "array_majority(array())" ) << false << QVariant();
QTest::newRow( "array_majority(array(1,2,42,42,'a','b'))" ) << QStringLiteral( "array_majority(array(1,2,42,42,'a','b'))" ) << false << QVariant( 42 );
QTest::newRow( "array_majority(array(1,2,42,42,'a','b'))" ) << QStringLiteral( "array_majority(array(1,2,42,42,'a','b'))" ) << false << QVariant( QVariantList() << 42 );

// file functions
QTest::newRow( "base_file_name(5)" ) << QStringLiteral( "base_file_name(5)" ) << false << QVariant( "5" );

0 comments on commit 7cdb694

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