summaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorPraveen Arimbrathodiyil <pravi.a@gmail.com>2009-01-11 23:27:28 -0800
committerPraveen Arimbrathodiyil <pravi.a@gmail.com>2009-01-11 23:27:28 -0800
commit50e6feb068dacabc60f928826158eb4bebc5cc8f (patch)
treee19dae7ec307180d705f406630159f39d2fa13b8 /calendar
parent4c72cd1c8e8a6b19503d35a246615779d4d34dd9 (diff)
downloadRachana.git-50e6feb068dacabc60f928826158eb4bebc5cc8f.tar.gz
Rachana.git-50e6feb068dacabc60f928826158eb4bebc5cc8f.tar.xz
Rachana.git-50e6feb068dacabc60f928826158eb4bebc5cc8f.zip
added a test case that does not work now.
got to fix it
Diffstat (limited to 'calendar')
-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 );
}