diff options
author | Praveen Arimbrathodiyil <pravi.a@gmail.com> | 2009-01-11 19:38:32 -0800 |
---|---|---|
committer | Praveen Arimbrathodiyil <pravi.a@gmail.com> | 2009-01-11 19:38:32 -0800 |
commit | 4c72cd1c8e8a6b19503d35a246615779d4d34dd9 (patch) | |
tree | d6724bb7abf194efab56c3738b6176989f7297c7 /calendar | |
parent | 54a6770d417ab5cdcd8a77becf5e33ea6be68986 (diff) | |
download | Rachana.git-4c72cd1c8e8a6b19503d35a246615779d4d34dd9.tar.gz Rachana.git-4c72cd1c8e8a6b19503d35a246615779d4d34dd9.tar.xz Rachana.git-4c72cd1c8e8a6b19503d35a246615779d4d34dd9.zip |
* added some more dates to test case
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp b/calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp index 14c9df2..e22a6a3 100644 --- a/calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp +++ b/calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp @@ -136,7 +136,6 @@ void KCalendarTest::testIndic() QCOMPARE( calendar->day(testDate), 1 ); QDate newDate = calendar->addYears(testDate, 4); -// doubt QCOMPARE( newDate.year(), 2082 ); QCOMPARE( calendar->daysInYear(newDate), 365 ); @@ -149,9 +148,16 @@ void KCalendarTest::testIndic() QCOMPARE( newDate.year(), 2078 ); QCOMPARE( newDate.month(), 2 ); 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); } + void KCalendarTest::testGregorianBasic() { const KCalendarSystem *calendar = KCalendarSystem::create(QString("gregorian")); |