Lines Matching defs:testCal
986 GregorianCalendar *testCal = (GregorianCalendar*)Calendar::createInstance(status);
989 delete testCal;
992 testCal->clear();
993 sdf.adoptCalendar(testCal);
998 testCal->setMinimalDaysInFirstWeek((uint8_t)minDays);
999 testCal->setFirstDayOfWeek((UCalendarDaysOfWeek)firstDay);
1006 testCal->set(j,11,25);
1008 testCal->add(UCAL_DATE,1,status);
1010 int32_t actWOY = testCal->get(UCAL_WEEK_OF_YEAR,status);
1012 UDate d = testCal->getTime(status);
1034 testCal->setFirstDayOfWeek(UCAL_SUNDAY);
1038 testCal->setMinimalDaysInFirstWeek((uint8_t)DATA[j]);
1039 testCal->set(1997, UCAL_DECEMBER, 21);
1041 int32_t woy = testCal->get(UCAL_WEEK_OF_YEAR,status);
1043 log(UnicodeString("") + sdf.format(testCal->getTime(status), str) +
1053 UDate save = testCal->getTime(status);
1054 testCal->clear();
1055 testCal->set(UCAL_YEAR_WOY, DATA[j+1+i] < 25 ? 1998 : 1997);
1056 testCal->set(UCAL_WEEK_OF_YEAR, DATA[j+1+i]);
1057 testCal->set(UCAL_DAY_OF_WEEK, (i%7) + UCAL_SUNDAY);
1058 if (testCal->getTime(status) != save) {
1061 sdf.format(testCal->getTime(status), str));
1065 testCal->setTime(save,status);
1066 testCal->add(UCAL_DATE, 1,status);
1086 testCal->setMinimalDaysInFirstWeek(3);
1087 testCal->setFirstDayOfWeek(UCAL_SUNDAY);
1091 testCal->clear();
1093 testCal->set(1996, Calendar::DECEMBER, i);
1094 UDate got = testCal->getTime(status);
1099 testCal->set(1997, Calendar::DECEMBER, i);
1100 UDate got = testCal->getTime(status);
1105 testCal->set(1998, UCAL_DECEMBER, i);
1106 UDate got = testCal->getTime(status);
1118 testCal->clear();
1119 testCal->set(UCAL_YEAR, y);
1120 testCal->set(UCAL_WEEK_OF_YEAR, woy);
1121 testCal->set(UCAL_DAY_OF_WEEK, dow);
1122 UDate got = testCal->getTime(status);
1130 logln(CalendarTest::calToStr(*testCal));
1131 testCal->setTime(exp, status);
1132 logln(CalendarTest::calToStr(*testCal) + UnicodeString( " <<< expected "));
1137 testCal->clear();
1138 testCal->set(UCAL_YEAR_WOY, ywoy);
1139 testCal->set(UCAL_WEEK_OF_YEAR, woy);
1140 testCal->set(UCAL_DAY_OF_WEEK, dow);
1141 got = testCal->getTime(status);
1176 testCal->setMinimalDaysInFirstWeek(3);
1177 testCal->setFirstDayOfWeek(UCAL_SUNDAY);
1183 testCal->setTime(before,status);
1185 testCal->add(UCAL_WEEK_OF_YEAR, amount,status);
1187 testCal->roll(UCAL_WEEK_OF_YEAR, amount,status);
1188 UDate got = testCal->getTime(status);
1206 testCal->setTime(after,status);
1208 testCal->add(UCAL_WEEK_OF_YEAR, -amount,status);
1210 testCal->roll(UCAL_WEEK_OF_YEAR, -amount,status);
1211 got = testCal->getTime(status);