Skip to content
Permalink
Browse files

Add lpad truncate test (#5947)

  • Loading branch information
DelazJ authored and nirvn committed Jan 11, 2018
1 parent fa2aff1 commit e137ea8a9db10bff371d0ae090705f34823c6d71
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgsexpression.cpp
@@ -995,7 +995,7 @@ class TestQgsExpression: public QObject
QTest::newRow( "rpad" ) << "rpad('Hello', 10, 'x')" << false << QVariant( "Helloxxxxx" );
QTest::newRow( "rpad truncate" ) << "rpad('Hello', 4, 'x')" << false << QVariant( "Hell" );
QTest::newRow( "lpad" ) << "lpad('Hello', 10, 'x')" << false << QVariant( "xxxxxHello" );
QTest::newRow( "lpad truncate" ) << "rpad('Hello', 4, 'x')" << false << QVariant( "Hell" );
QTest::newRow( "lpad truncate" ) << "lpad('Hello', 4, 'x')" << false << QVariant( "Hell" );
QTest::newRow( "title" ) << "title(' HeLlO WORLD ')" << false << QVariant( " Hello World " );
QTest::newRow( "trim" ) << "trim(' Test String ')" << false << QVariant( "Test String" );
QTest::newRow( "trim empty string" ) << "trim('')" << false << QVariant( "" );

0 comments on commit e137ea8

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