summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp b/calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp
index e22a6a3..8175b5c 100644
--- a/calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp
+++ b/calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp
@@ -150,10 +150,10 @@ void KCalendarTest::testIndic()
QCOMPARE( newDate.day(), 10 );
QDate myDate(2009, 1, 11);
- QCOMPARE( calendar->year(myDate), 1930);
- myDate = calendar->addDays(myDate, 32);
- QCOMPARE(myDate.month(),2);
- QCOMPARE( calendar->day(myDate),23);
+ QVERIFY( calendar->setDate( myDate, 1938, 1, 7) );
+ myDate = calendar->addMonths( myDate, -1 );
+ QCOMPARE( calendar->year( myDate ), 1937 );
+ QCOMPARE( calendar->month( myDate ), 12 );
}