mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Add test for format expression function
This commit is contained in:
parent
96565d1d12
commit
5ed164abab
@ -283,6 +283,7 @@ class TestQgsExpression: public QObject
|
||||
QTest::newRow( "lpad" ) << "lpad('Hello', 10, 'x')" << false << QVariant( "Helloxxxxx" );
|
||||
QTest::newRow( "lpad truncate" ) << "rpad('Hello', 4, 'x')" << false << QVariant( "Hell" );
|
||||
QTest::newRow( "title" ) << "title(' HeLlO WORLD ')" << false << QVariant( " Hello World " );
|
||||
QTest::newRow( "format" ) << "format('%1 %2 %3 %1', 'One', 'Two', 'Three')" << false << QVariant( "One Two Three One" );
|
||||
|
||||
// implicit conversions
|
||||
QTest::newRow( "implicit int->text" ) << "length(123)" << false << QVariant( 3 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user