From kde-commits Mon Oct 20 11:26:34 2003 From: Meni Livne Date: Mon, 20 Oct 2003 11:26:34 +0000 To: kde-commits Subject: kdelibs/kdecore/tests X-MARC-Message: https://marc.info/?l=kde-commits&m=106664939523393 CVS commit by livne: Add tests for (day|month|year)String(), remove test for deprecated yearLiteral(). M +4 -1 kcalendartest.cpp 1.6 --- kdelibs/kdecore/tests/kcalendartest.cpp #1.5:1.6 @@ -100,5 +100,8 @@ void test(QDate & date) { kdDebug() << "Month for date " << date.toString() << " is " << KGlobal::locale()->calendar()->month(date) << endl; kdDebug() << "Year for date " << date.toString() << " is " << KGlobal::locale()->calendar()->year(date) << endl; - kdDebug() << "(Liteal) Year for date " << date.toString() << " is " << KGlobal::locale()->calendar()->yearLiteral(date) << endl; + + kdDebug() << "Day for date " << date.toString() << " as a string is " << KGlobal::locale()->calendar()->dayString(date, true) << endl; + kdDebug() << "Month for date " << date.toString() << " as a string is " << KGlobal::locale()->calendar()->monthString(date, true) << endl; + kdDebug() << "Year for date " << date.toString() << " as a string is " << KGlobal::locale()->calendar()->yearString(date, true) << endl; kdDebug() << "Day of week for date " << date.toString() << " is number " << KGlobal::locale()->calendar()->dayOfWeek(date) << endl;