summaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorPraveen Arimbrathodiyil <pravi.a@gmail.com>2009-01-11 14:40:07 -0800
committerPraveen Arimbrathodiyil <pravi.a@gmail.com>2009-01-11 14:40:07 -0800
commitbb2857d70c3a8a9c770ec25ad98f0f6175971231 (patch)
tree51c558b8de2675a7d536680131c268cac4788269 /calendar
parent0d9adfaf9ca9bb41473429c3c3fbf4f252ada1b9 (diff)
downloadAnjaliOldLipi.git-bb2857d70c3a8a9c770ec25ad98f0f6175971231.tar.gz
AnjaliOldLipi.git-bb2857d70c3a8a9c770ec25ad98f0f6175971231.tar.xz
AnjaliOldLipi.git-bb2857d70c3a8a9c770ec25ad98f0f6175971231.zip
updated test cases for setDate change.
Diffstat (limited to 'calendar')
-rw-r--r--calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp b/calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp
index cea8f1e..d03b434 100644
--- a/calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp
+++ b/calendar/kde/kdelibs/kdecore/tests/kcalendartest.cpp
@@ -131,10 +131,9 @@ void KCalendarTest::testIndic()
QCOMPARE( calendar->dayOfYear(testDate), 173 );
QVERIFY( calendar->setYMD( testDate, 2000, 3, 1 ) );
-// Not sure if it should return Saka year.
- QCOMPARE( calendar->year(testDate), 1921 );
- QCOMPARE( calendar->month(testDate), 12 );
- QCOMPARE( calendar->day(testDate), 11 );
+ QCOMPARE( calendar->year(testDate), 2000 );
+ QCOMPARE( calendar->month(testDate), 3 );
+ QCOMPARE( calendar->day(testDate), 1 );
QDate newDate = calendar->addYears(testDate, 4);
// doubt