Skip to content

Commit

Permalink
Fix QgsComposerLabel unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Oct 2, 2012
1 parent cba87de commit aab22b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/core/testqgscomposerlabel.cpp
Expand Up @@ -109,7 +109,7 @@ void TestQgsComposerLabel::evaluation()
QDate now = QDate::currentDate();
int dd = now.day();

QString expected = "__" + QString("%1").arg(dd+1, 2, 10, QChar('0')) + "(ok)__";
QString expected = "__" + QString("%1").arg(dd+1) + "(ok)__";
mComposerLabel->setText( "__[%$CURRENT_DATE(dd) + 1%](ok)__" );
QString evaluated = mComposerLabel->displayText();
QCOMPARE( evaluated, expected );
Expand Down

0 comments on commit aab22b2

Please sign in to comment.