summaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp8
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"));