Skip to content
Permalink
Browse files

add title() expression test row

  • Loading branch information
jef-n committed Aug 3, 2012
1 parent 3715845 commit 0235fadeadd9d93df34f42f9dfd62e880f8cad22
Showing with 1 addition and 0 deletions.
  1. +1 −0 tests/src/core/testqgsexpression.cpp
@@ -263,6 +263,7 @@ class TestQgsExpression: public QObject
QTest::newRow( "rpad truncate" ) << "rpad('Hello', 4, 'x')" << false << QVariant( "Hell" );
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 " );

// implicit conversions
QTest::newRow( "implicit int->text" ) << "length(123)" << false << QVariant( 3 );

0 comments on commit 0235fad

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