mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Add lpad truncate test (#5947)
This commit is contained in:
parent
fa2aff18e5
commit
e137ea8a9d
@ -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( "" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user