From 50e6feb068dacabc60f928826158eb4bebc5cc8f Mon Sep 17 00:00:00 2001 From: Praveen Arimbrathodiyil Date: Sun, 11 Jan 2009 23:27:28 -0800 Subject: added a test case that does not work now. got to fix it --- calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'calendar') 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 ); } -- cgit