Home | History | Annotate | Download | only in intltest

Lines Matching refs:year

529     int32_t year = 1997, month = UCAL_APRIL, date = 1;
530 gc->set(year, month, date);
537 if (gc->get(UCAL_YEAR, status) != year ||
697 /* Note: The following test used to expect YEAR 1997, WOY 1 to
701 * desired. Using YEAR in combination with WOY is ambiguous, and
702 * results in the first WOY/DOW day of the year satisfying the
706 * _calendar_ year 1997, as specified. - aliu */
712 c->clear(); // - add test for YEAR
717 verify765("1997 Tuesday in week 1 of year = ", c, 1997, UCAL_DECEMBER, 30);
722 verify765("1997 Tuesday in week 10 of year = ", c, 1997, UCAL_MARCH, 4);
725 // {sfb} week 0 is no longer a valid week of year
727 c->set(Calendar::YEAR, 1997);
731 verify765("1997 Tuesday in week 0 of year = ", c, 1996, Calendar::DECEMBER, 24);*/
744 CalendarTest::verify765(const UnicodeString& msg, Calendar* c, int32_t year, int32_t month, int32_t day)
751 if ( y == year &&
759 errln("FAIL: " + msg + dateToString(c->getTime(status), str) + "; expected " + (int32_t)year + "/" + (int32_t)(month + 1) + "/" + (int32_t)day +
1243 int32_t year = 1997;
1247 calendar = new GregorianCalendar(year, month, dDate, status);
1350 /* Note: I've commented out the loop_addroll tests for YEAR and
1352 * identically when adding. YEAR should keep the month/dom
1390 //loop_addroll(cal, /*sdf,*/ times, Calendar::YEAR_WOY, Calendar::YEAR, status);
1401 * Confirm that adding a YEAR and adding a YEAR_WOY work properly for
1406 * When adding the YEAR, the month and day should remain constant.
1410 * Add(YEAR, 1) -> Thu Jan 14 1999 / 1999-W02-04
1412 * Add(YEAR, 1) -> Fri Jan 14 2000 / 2000-W02-05
1414 * Add(YEAR, 1) -> Mon Oct 31 1583 / 1583-W44-01
1433 str += ".add(YEAR, 1) =>";
1440 str += (UnicodeString)", expected year " +
1528 //logln((UnicodeString)"Parsed week of year is "+tstres->get(UCAL_WEEK_OF_YEAR, errorCode));
1549 errln("FAIL: Different Year!");
1555 errln("FAIL: Different Day Of Year!");
1681 int32_t year = cal.get(UCAL_YEAR, status);
1688 int32_t yearWoy = year;
1699 cal.set(UCAL_YEAR, year);
1706 if (t_y != year || t_woy != woy || t_dow != dow) {
1712 t_y, year, t_woy, woy, t_dow, dow);
1721 cal.set(UCAL_YEAR, year);
1728 if (t_y != year || t_woy != woy || t_dow != dowLocal) {
1796 // Make sure YEAR_WOY disambiguates over YEAR
1798 cal.set(UCAL_YEAR, year - 2);
1808 // Make sure YEAR disambiguates over YEAR_WOY
1811 cal.set(UCAL_YEAR, year);
1815 str = "Fail: YEAR fields->time => ";
1887 errln("year not 2003");
1898 errln("year not 2004");
1910 errln("year not 2003");
2129 for (int32_t year = 5600; year < 5800; year++ ) {
2132 // skip the adar 1 month if year is not a leap year
2133 if (HebrewCalendar::isLeapYear(year) == FALSE && month == HebrewCalendar::ADAR_1) {
2137 hc.set(year,month,day);
2152 if (yearHC != year) {
2153 errln(" ==> day %d incorrect, should be: %d\n",yearHC,year);