Skip to content
Permalink
Browse files

Fix QgsComposerLabel unit test

  • Loading branch information
Hugo Mercier
Hugo Mercier committed Oct 2, 2012
1 parent cba87de commit aab22b2e7c0c8088f0d9477a109f4d6f56ec3f7f
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgscomposerlabel.cpp
@@ -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 );

0 comments on commit aab22b2

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