Lines Matching full:status
126 CalendarRegressionTest::failure(UErrorCode status, const char* msg) in failure() argument
128 if(U_FAILURE(status)) { in failure()
129 errcheckln(status, UnicodeString("FAIL: ") + msg + " failed, error " + u_errorName(status)); in failure()
142 UErrorCode status = U_ZERO_ERROR; in test4100311() local
143 GregorianCalendar *cal = (GregorianCalendar*)Calendar::createInstance(status); in test4100311()
144 if(U_FAILURE(status)) { in test4100311()
145 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4100311()
149 failure(status, "Calendar::createInstance(status)"); in test4100311()
152 UDate d = cal->getTime(status); // Should be Jan 1 in test4100311()
153 failure(status, "cal->getTime"); in test4100311()
165 UErrorCode status = U_ZERO_ERROR; in test4074758() local
166 GregorianCalendar *cal = new GregorianCalendar(status); in test4074758()
167 if(U_FAILURE(status)) { in test4074758()
168 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4074758()
172 failure(status, "new GregorianCalendar"); in test4074758()
176 logln(UnicodeString("HOUR=") + cal->get(UCAL_HOUR, status)); //prints 0 in test4074758()
177 failure(status, "cal->get"); in test4074758()
178 logln(UnicodeString("HOUR_OF_DAY=") + cal->get(UCAL_HOUR_OF_DAY, status)); in test4074758()
179 failure(status, "cal->get"); in test4074758()
188 UErrorCode status = U_ZERO_ERROR; in test4028518() local
189 GregorianCalendar *cal1 = new GregorianCalendar(status) ; in test4028518()
190 if(U_FAILURE(status)) { in test4028518()
191 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4028518()
195 failure(status, "new GregorianCalendar"); in test4028518()
200 cal1->add(UCAL_DATE, 1, status) ; in test4028518()
201 failure(status, "cal1->add"); in test4028518()
212 UErrorCode status = U_ZERO_ERROR; in Test9019() local
213 LocalPointer<GregorianCalendar> cal1(new GregorianCalendar(status), status); in Test9019()
214 LocalPointer<GregorianCalendar> cal2(new GregorianCalendar(status), status); in Test9019()
215 if(U_FAILURE(status)) { in Test9019()
216 dataerrln("Error creating Calendar: %s", u_errorName(status)); in Test9019()
223 failure(status, "new GregorianCalendar"); in Test9019()
228 cal1->add(UCAL_MONTH,8,status); in Test9019()
229 failure(status, "->add(UCAL_MONTH,8)"); in Test9019()
233 if(!cal1->equals(*cal2,status)) { in Test9019()
236 failure(status, "equals"); in Test9019()
242 UErrorCode status = U_ZERO_ERROR; in printdate() local
244 log(UnicodeString("") + cal->get(UCAL_MONTH, status)) ; in printdate()
245 failure(status, "cal->get"); in printdate()
246 int32_t date = cal->get(UCAL_DATE, status) + 1 ; in printdate()
247 failure(status, "cal->get"); in printdate()
249 logln(UnicodeString("/") + cal->get(UCAL_YEAR, status)) ; in printdate()
250 failure(status, "cal->get"); in printdate()
261 UErrorCode status = U_ZERO_ERROR; in test4031502() local
269 failure(status, "new TimeZone"); in test4031502()
270 GregorianCalendar *cl = new GregorianCalendar(tz, status); in test4031502()
271 if (U_FAILURE(status)) { in test4031502()
272 dataerrln("Fail new GregorianCalendar: %s", u_errorName(status)); in test4031502()
278 cl->get(UCAL_HOUR, status); in test4031502()
279 failure(status, "cl->get(UCAL_HOUR, status)"); in test4031502()
280 status = U_ZERO_ERROR; in test4031502()
282 for (int32_t i=0; i<ids->count(status); ++i) { in test4031502()
283 TimeZone *zone = TimeZone::createTimeZone(*ids->snext(status)); in test4031502()
284 GregorianCalendar *cal = new GregorianCalendar(zone, status); in test4031502()
285 failure(status, "new GregorianCalendar"); in test4031502()
288 if (cal->get(UCAL_HOUR, status) != 5 || U_FAILURE(status)) { in test4031502()
292 cal->get(UCAL_DST_OFFSET,status) / (60*60*1000) + " " + in test4031502()
294 ": HOUR = " + cal->get(UCAL_HOUR,status)); in test4031502()
310 UErrorCode status = U_ZERO_ERROR; in test4035301() local
311 GregorianCalendar *c = new GregorianCalendar(98, 8, 7,status); in test4035301()
312 GregorianCalendar *d = new GregorianCalendar(98, 8, 7,status); in test4035301()
313 if (c->after(*d,status) || in test4035301()
314 c->after(*c,status) || in test4035301()
315 c->before(*d,status) || in test4035301()
316 c->before(*c,status) || in test4035301()
335 UErrorCode status = U_ZERO_ERROR; in test4040996() local
336 count = ids->count(status); in test4040996()
338 SimpleTimeZone *pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, *ids->snext(status)); in test4040996()
339 pdt->setStartRule(UCAL_APRIL, 1, UCAL_SUNDAY, 2 * 60 * 60 * 1000, status); in test4040996()
340 pdt->setEndRule(UCAL_OCTOBER, -1, UCAL_SUNDAY, 2 * 60 * 60 * 1000, status); in test4040996()
341 Calendar *calendar = new GregorianCalendar(pdt, status); in test4040996()
342 if (U_FAILURE(status)) { in test4040996()
343 dataerrln("Fail new GregorianCalendar: %s", u_errorName(status)); in test4040996()
350 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996()
352 calendar->get(UCAL_DATE, status)); in test4040996()
353 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status)); in test4040996()
354 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status)); in test4040996()
356 calendar->add(UCAL_SECOND,6, status); in test4040996()
360 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996()
362 calendar->get(UCAL_DATE, status)); in test4040996()
363 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status)); in test4040996()
364 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status)); in test4040996()
365 if (calendar->get(UCAL_MONTH, status) != 3 || in test4040996()
366 calendar->get(UCAL_DATE, status) != 18 || in test4040996()
367 calendar->get(UCAL_SECOND, status) != 36) in test4040996()
380 UErrorCode status = U_ZERO_ERROR; in test4051765() local
381 Calendar *cal = Calendar::createInstance(status); in test4051765()
382 if(U_FAILURE(status)) { in test4051765()
383 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4051765()
390 cal->getTime(status); in test4051765()
391 if( ! U_FAILURE(status)) in test4051765()
404 GregorianCalendar calendar = new GregorianCalendar(status);
463 UErrorCode status = U_ZERO_ERROR; in test4059654() local
464 GregorianCalendar *gc = new GregorianCalendar(status); in test4059654()
465 if(U_FAILURE(status)) { in test4059654()
466 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4059654()
479 UDate cd = gc->getTime(status); in test4059654()
480 GregorianCalendar *exp = new GregorianCalendar(1997, 3, 1, 0, 0, 0, status); in test4059654()
481 if (cd != exp->getTime(status)) in test4059654()
482 … errln(UnicodeString("Fail: Calendar::set broken. Got ") + cd + " Want " + exp->getTime(status)); in test4059654()
493 UErrorCode status = U_ZERO_ERROR; in test4061476() local
494 SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("ddMMMyy"), Locale::getUK(),status); in test4061476()
496 Locale::getUK(),status); in test4061476()
497 if(U_FAILURE(status)) { in test4061476()
498 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4061476()
505 UDate date = fmt->parse("29MAY97", status); in test4061476()
506 failure(status, "fmt->parse"); in test4061476()
507 cal->setTime(date, status); in test4061476()
508 failure(status, "cal->setTime"); in test4061476()
512 logln(UnicodeString("Hour: ")+cal->get(UCAL_HOUR_OF_DAY, status)); in test4061476()
513 cal->add(UCAL_HOUR_OF_DAY, 6,status); in test4061476()
514 logln(UnicodeString("Hour: ")+cal->get(UCAL_HOUR_OF_DAY, status)); in test4061476()
515 if (cal->get(UCAL_HOUR_OF_DAY, status) != 19) in test4061476()
516 errln(UnicodeString("Fail: Want 19 Got ") + cal->get(UCAL_HOUR_OF_DAY, status)); in test4061476()
526 UErrorCode status = U_ZERO_ERROR; in test4070502() local
527 Calendar *cal = new GregorianCalendar(status); in test4070502()
528 if(status == U_USING_FALLBACK_WARNING || U_FAILURE(status)) { in test4070502()
529 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4070502()
533 UDate d = getAssociatedDate(makeDate(1998,0,30), status); in test4070502()
534 cal->setTime(d,status); in test4070502()
535 if (cal->get(UCAL_DAY_OF_WEEK,status) == UCAL_SATURDAY || in test4070502()
536 cal->get(UCAL_DAY_OF_WEEK,status) == UCAL_SUNDAY) in test4070502()
550 CalendarRegressionTest::getAssociatedDate(UDate d, UErrorCode& status) in getAssociatedDate() argument
552 GregorianCalendar *cal = new GregorianCalendar(status); in getAssociatedDate()
553 cal->setTime(d,status); in getAssociatedDate()
557 int32_t wd = cal->get(UCAL_DAY_OF_WEEK, status); in getAssociatedDate()
559 cal->add(UCAL_DATE, 1, status); in getAssociatedDate()
566 UDate dd = cal->getTime(status); in getAssociatedDate()
582 UErrorCode status = U_ZERO_ERROR; in dowTest() local
583 GregorianCalendar *cal = new GregorianCalendar(status); in dowTest()
584 if(U_FAILURE(status)) { in dowTest()
585 dataerrln("Error creating Calendar: %s", u_errorName(status)); in dowTest()
593 int32_t dow = cal->get(UCAL_DAY_OF_WEEK, status); in dowTest()
604 if(U_FAILURE(status)) { in dowTest()
605 errln("Error checking Calendar: %s", u_errorName(status)); in dowTest()
610 if(cal->getActualMinimum(UCAL_DAY_OF_WEEK, status) != min) { in dowTest()
613 if(cal->getActualMinimum(Calendar::DAY_OF_WEEK, status) != min) { in dowTest()
614 errln("FAIL: actual minimum (Calendar::DAY_OF_WEEK, status) differs from minimum"); in dowTest()
619 if(((Calendar*)cal)->getActualMinimum(UCAL_DAY_OF_WEEK, status) != min) { in dowTest()
620 errln("FAIL: actual minimum (UCAL_DAY_OF_WEEK, status) differs from minimum"); in dowTest()
623 // if(((Calendar*)cal)->getActualMinimum(Calendar::DAY_OF_WEEK, status) != min) { in dowTest()
624 // errln("FAIL: actual minimum (Calendar::DAY_OF_WEEK, status) differs from minimum"); in dowTest()
626 if(U_FAILURE(status)) { in dowTest()
627 errln("Error getting actual minimum: %s", u_errorName(status)); in dowTest()
639 UErrorCode status = U_ZERO_ERROR; in test4071385() local
640 Calendar *cal = Calendar::createInstance(status); in test4071385()
641 if(U_FAILURE(status)) { in test4071385()
642 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4071385()
646 cal->setTime(makeDate(1998, UCAL_JUNE, 24),status); in test4071385()
649 if (cal->getTime(status) != makeDate(1998, UCAL_NOVEMBER, 24)) in test4071385()
660 UErrorCode status = U_ZERO_ERROR; in test4073929() local
661 GregorianCalendar *foo1 = new GregorianCalendar(1997, 8, 27,status); in test4073929()
662 if(U_FAILURE(status)) { in test4073929()
663 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4073929()
667 logln("foo1@%.0f - %d-%d-%d %d:%d:%d.%ds\n", foo1->getTime(status), in test4073929()
668 foo1->get(UCAL_YEAR, status), in test4073929()
669 foo1->get(UCAL_MONTH, status), in test4073929()
670 foo1->get(UCAL_DATE, status), in test4073929()
671 foo1->get(UCAL_HOUR, status), in test4073929()
672 foo1->get(UCAL_MINUTE, status), in test4073929()
673 foo1->get(UCAL_SECOND, status), in test4073929()
674 foo1->get(UCAL_MILLISECOND,status)); in test4073929()
675 foo1->add(UCAL_DATE, + 1, status); in test4073929()
676 logln("foo1@%.0f - %d-%d-%d %d:%d:%d.%ds after +\n", foo1->getTime(status), in test4073929()
677 foo1->get(UCAL_YEAR, status), in test4073929()
678 foo1->get(UCAL_MONTH, status), in test4073929()
679 foo1->get(UCAL_DATE, status), in test4073929()
680 foo1->get(UCAL_HOUR, status), in test4073929()
681 foo1->get(UCAL_MINUTE, status), in test4073929()
682 foo1->get(UCAL_SECOND, status), in test4073929()
683 foo1->get(UCAL_MILLISECOND ,status)); in test4073929()
684 foo1->add(UCAL_DATE, - 1, status); in test4073929()
685 logln("foo1@%.0f - %d-%d-%d %d:%d:%d.%ds after -\n", foo1->getTime(status), in test4073929()
686 foo1->get(UCAL_YEAR, status), in test4073929()
687 foo1->get(UCAL_MONTH, status), in test4073929()
688 foo1->get(UCAL_DATE, status), in test4073929()
689 foo1->get(UCAL_HOUR, status), in test4073929()
690 foo1->get(UCAL_MINUTE, status), in test4073929()
691 foo1->get(UCAL_SECOND, status), in test4073929()
692 foo1->get(UCAL_MILLISECOND, status)); in test4073929()
694 foo1->add(UCAL_DATE, + 1, status); in test4073929()
695 int32_t testyear = foo1->get(UCAL_YEAR, status); in test4073929()
696 int32_t testmonth = foo1->get(UCAL_MONTH, status); in test4073929()
697 int32_t testday = foo1->get(UCAL_DATE, status); in test4073929()
711 UErrorCode status = U_ZERO_ERROR; in test4083167() local
717 Calendar *cal = new GregorianCalendar(status); in test4083167()
718 if(U_FAILURE(status)) { in test4083167()
719 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4083167()
723 cal->setTime(firstDate,status); in test4083167()
724 int32_t hr = cal->get(UCAL_HOUR_OF_DAY, status); in test4083167()
725 int32_t min = cal->get(UCAL_MINUTE, status); in test4083167()
726 int32_t sec = cal->get(UCAL_SECOND, status); in test4083167()
727 int32_t msec = cal->get(UCAL_MILLISECOND, status); in test4083167()
734 cal->setTime(lastDate, status); in test4083167()
735 hr = cal->get(UCAL_HOUR_OF_DAY, status); in test4083167()
736 min = cal->get(UCAL_MINUTE, status); in test4083167()
737 sec = cal->get(UCAL_SECOND, status); in test4083167()
738 msec = cal->get(UCAL_MILLISECOND, status); in test4083167()
758 UErrorCode status = U_ZERO_ERROR; in test4086724() local
763 Locale::setDefault(Locale::getUK(),status); in test4086724()
766 date = new SimpleDateFormat(UnicodeString("dd MMM yyy (zzzz) 'is in week' ww"),status); in test4086724()
767 Calendar *cal = Calendar::createInstance(status); in test4086724()
768 if(U_FAILURE(status)) { in test4086724()
769 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4086724()
776 UDate now = cal->getTime(status); in test4086724()
781 now=cal->getTime(status); in test4086724()
784 now=cal->getTime(status); in test4086724()
787 now=cal->getTime(status); in test4086724()
791 Locale::setDefault(saveLocale,status); in test4086724()
806 UErrorCode status = U_ZERO_ERROR; in test4092362() local
807 GregorianCalendar *cal1 = new GregorianCalendar(1997, 10, 11, 10, 20, 40,status); in test4092362()
808 if (U_FAILURE(status)) { in test4092362()
809 dataerrln("Fail new GregorianCalendar: %s", u_errorName(status)); in test4092362()
820 logln( UnicodeString(" Cal1 = ") + cal1->getTime(status) ); in test4092362()
821 logln( UnicodeString(" Cal1 time in ms = ") + cal1->get(UCAL_MILLISECOND,status) ); in test4092362()
825 GregorianCalendar *cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40,status); in test4092362()
833 logln( UnicodeString(" Cal2 = ") + cal2->getTime(status) ); in test4092362()
834 logln( UnicodeString(" Cal2 time in ms = ") + cal2->get(UCAL_MILLISECOND,status) ); in test4092362()
847 UErrorCode status = U_ZERO_ERROR; in test4095407() local
848 GregorianCalendar *a = new GregorianCalendar(1997,UCAL_NOVEMBER, 13,status); in test4095407()
849 if (U_FAILURE(status)) { in test4095407()
850 dataerrln("Fail new GregorianCalendar: %s", u_errorName(status)); in test4095407()
854 int32_t dow = a->get(UCAL_DAY_OF_WEEK, status); in test4095407()
866 UErrorCode status = U_ZERO_ERROR; in test4096231() local
871 Calendar *cal1 = new GregorianCalendar(*PST,status); in test4096231()
872 if (U_FAILURE(status)) { in test4096231()
873 dataerrln("Failure new GregorianCalendar: %s", u_errorName(status)); in test4096231()
879 cal1->setTime(880698639000.0,status); in test4096231()
885 logln(UnicodeString("PST 1 is: ") + (h1=cal1->get(UCAL_HOUR_OF_DAY, status))); in test4096231()
887 logln(UnicodeString("GMT 2 is: ") + (h2=cal1->get(UCAL_HOUR_OF_DAY, status))); in test4096231()
891 Calendar *cal2 = new GregorianCalendar(*GMT,status); in test4096231()
892 Calendar *cal3 = new GregorianCalendar(*PST,status); in test4096231()
896 cal2->set(cal1->get(UCAL_YEAR,status), in test4096231()
897 cal1->get(UCAL_MONTH,status), in test4096231()
898 cal1->get(UCAL_DATE,status), in test4096231()
899 cal1->get(UCAL_HOUR_OF_DAY,status), in test4096231()
900 cal1->get(UCAL_MINUTE,status), in test4096231()
901 cal1->get(UCAL_SECOND,status)); in test4096231()
904 logln(UnicodeString("RGMT 1 is: ") + (t1=cal2->getTime(status))); in test4096231()
906 logln(UnicodeString("RPST 1 is: ") + (t2=cal3->getTime(status))); in test4096231()
908 logln(UnicodeString("RGMT 2 is: ") + (t3=cal3->getTime(status))); in test4096231()
909 cal3->set(cal1->get(UCAL_YEAR,status), in test4096231()
910 cal1->get(UCAL_MONTH,status), in test4096231()
911 cal1->get(UCAL_DATE,status), in test4096231()
912 cal1->get(UCAL_HOUR_OF_DAY,status), in test4096231()
913 cal1->get(UCAL_MINUTE,status), in test4096231()
914 cal1->get(UCAL_SECOND,status)); in test4096231()
918 logln(UnicodeString("RGMT 3 is: ") + (t4=cal3->getTime(status))); in test4096231()
936 UErrorCode status = U_ZERO_ERROR; in test4096539() local
941 GregorianCalendar(1997,x,y[x], status); in test4096539()
942 if (U_FAILURE(status)) { in test4096539()
943 dataerrln("Fail new GregorianCalendar: %s", u_errorName(status)); in test4096539()
948 log(UnicodeString("") + (m1=gc->get(UCAL_MONTH,status)+1)+UnicodeString("/")+ in test4096539()
949 gc->get(UCAL_DATE,status)+"/"+gc->get(UCAL_YEAR,status)+ in test4096539()
952 gc->add(UCAL_MONTH, 1,status); in test4096539()
953 logln(UnicodeString("") + (m2=gc->get(UCAL_MONTH,status)+1)+UnicodeString("/")+ in test4096539()
954 gc->get(UCAL_DATE,status)+"/"+gc->get(UCAL_YEAR,status) in test4096539()
969 UErrorCode status = U_ZERO_ERROR; in test41003112() local
970 GregorianCalendar *cal = (GregorianCalendar*)Calendar::createInstance(status); in test41003112()
971 if(U_FAILURE(status)) { in test41003112()
972 dataerrln("Error creating calendar: %s", u_errorName(status)); in test41003112()
978 //UDate d = cal->getTime(status); // Should be Jan 1 in test41003112()
980 if (cal->get(UCAL_DAY_OF_YEAR, status) != 1) in test41003112()
990 UErrorCode status = U_ZERO_ERROR; in test4103271() local
991 SimpleDateFormat sdf(status); in test4103271()
994 GregorianCalendar *testCal = (GregorianCalendar*)Calendar::createInstance(status); in test4103271()
995 if(U_FAILURE(status)) { in test4103271()
996 dataerrln("Error creating calendar: %s", u_errorName(status)); in test4103271()
1016 testCal->add(UCAL_DATE,1,status); in test4103271()
1018 int32_t actWOY = testCal->get(UCAL_WEEK_OF_YEAR,status); in test4103271()
1020 UDate d = testCal->getTime(status); in test4103271()
1049 int32_t woy = testCal->get(UCAL_WEEK_OF_YEAR,status); in test4103271()
1051 log(UnicodeString("") + sdf.format(testCal->getTime(status), str) + in test4103271()
1061 UDate save = testCal->getTime(status); in test4103271()
1066 if (testCal->getTime(status) != save) { in test4103271()
1069 sdf.format(testCal->getTime(status), str)); in test4103271()
1073 testCal->setTime(save,status); in test4103271()
1074 testCal->add(UCAL_DATE, 1,status); in test4103271()
1102 UDate got = testCal->getTime(status); in test4103271()
1108 UDate got = testCal->getTime(status); in test4103271()
1114 UDate got = testCal->getTime(status); in test4103271()
1130 UDate got = testCal->getTime(status); in test4103271()
1139 testCal->setTime(exp, status); in test4103271()
1149 got = testCal->getTime(status); in test4103271()
1191 testCal->setTime(before,status); in test4103271()
1193 testCal->add(UCAL_WEEK_OF_YEAR, amount,status); in test4103271()
1195 testCal->roll(UCAL_WEEK_OF_YEAR, amount,status); in test4103271()
1196 UDate got = testCal->getTime(status); in test4103271()
1214 testCal->setTime(after,status); in test4103271()
1216 testCal->add(UCAL_WEEK_OF_YEAR, -amount,status); in test4103271()
1218 testCal->roll(UCAL_WEEK_OF_YEAR, -amount,status); in test4103271()
1219 got = testCal->getTime(status); in test4103271()
1240 UErrorCode status = U_ZERO_ERROR; in test4106136() local
1245 Locale::setDefault(locales[i], status); in test4106136()
1246 failure(status, "Locale::setDefault"); in test4106136()
1262 Locale::setDefault(saveLocale,status); in test4106136()
1271 UErrorCode status = U_ZERO_ERROR; in test4108764() local
1272 Calendar *cal = Calendar::createInstance(status); in test4108764()
1273 if(U_FAILURE(status)) { in test4108764()
1274 dataerrln("Error creating calendar %s", u_errorName(status)); in test4108764()
1284 cal->setTime(d11,status); in test4108764()
1287 logln(UnicodeString("") + cal->getTime(status)); in test4108764()
1288 if (cal->getTime(status) != d01) in test4108764()
1292 logln(UnicodeString("") + cal->getTime(status)); in test4108764()
1293 if (cal->getTime(status) != d00) in test4108764()
1296 cal->setTime(d11,status); in test4108764()
1298 logln(UnicodeString("") + cal->getTime(status)); in test4108764()
1299 if (cal->getTime(status) != d10) in test4108764()
1303 logln(UnicodeString("") + cal->getTime(status)); in test4108764()
1304 if (cal->getTime(status) != d00) in test4108764()
1308 logln(UnicodeString("") + cal->getTime(status)); in test4108764()
1309 if (cal->getTime(status) != epoch) in test4108764()
1320 UErrorCode status = U_ZERO_ERROR; in test4114578() local
1322 Calendar *cal = Calendar::createInstance(status); in test4114578()
1323 if(U_FAILURE(status)) { in test4114578()
1324 dataerrln("Error creating calendar %s", u_errorName(status)); in test4114578()
1355 cal->setTime(date,status); in test4114578()
1360 cal->add(UCAL_HOUR, amt,status); in test4114578()
1364 cal->roll(UCAL_HOUR, amt,status); in test4114578()
1368 log(UnicodeString("") + cal->getTime(status)); in test4114578()
1370 double change = cal->getTime(status) - date; in test4114578()
1389 UErrorCode status = U_ZERO_ERROR; in test4118384() local
1390 Calendar *cal = Calendar::createInstance(status); in test4118384()
1391 if(U_FAILURE(status)) { in test4118384()
1392 dataerrln("Error creating calendar %s", u_errorName(status)); in test4118384()
1398 cal->getActualMaximum(UCAL_HOUR,status) != 11) in test4118384()
1413 cal = Calendar::createInstance(Locale("th_TH@calendar=buddhist"),status); in test4118384()
1414 if(U_FAILURE(status)) { in test4118384()
1415 dataerrln("Error creating calendar %s", u_errorName(status)); in test4118384()
1432 cal = Calendar::createInstance(Locale("ja_JP@calendar=japanese"),status); in test4118384()
1433 if(U_FAILURE(status)) { in test4118384()
1434 dataerrln("Error creating calendar %s", u_errorName(status)); in test4118384()
1457 UErrorCode status = U_ZERO_ERROR; in test4125881() local
1458 GregorianCalendar *cal = (GregorianCalendar*) Calendar::createInstance(status); in test4125881()
1459 if(U_FAILURE(status)) { in test4125881()
1460 dataerrln("Error creating calendar %s", u_errorName(status)); in test4125881()
1464 DateFormat *fmt = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"),status); in test4125881()
1465 if(U_FAILURE(status)) { in test4125881()
1466 dataerrln("Error creating SimpleDateFormat - %s", u_errorName(status)); in test4125881()
1475 …logln(UnicodeString("") + y + UnicodeString(" = ") + fmt->format(cal->getTime(status), temp) + " "… in test4125881()
1491 UErrorCode status = U_ZERO_ERROR; in test4125892() local
1492 GregorianCalendar *cal = (GregorianCalendar*) Calendar::createInstance(status); in test4125892()
1493 if(U_FAILURE(status)) { in test4125892()
1494 dataerrln("Error creating calendar %s", u_errorName(status)); in test4125892()
1498 DateFormat *fmt = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"),status); in test4125892()
1499 if(U_FAILURE(status)) { in test4125892()
1500 dataerrln("Error creating SimpleDateFormat - %s", u_errorName(status)); in test4125892()
1509 cal->add(UCAL_DATE, 1,status); in test4125892()
1510 if(U_FAILURE(status)) in test4125892()
1512 if (cal->get(UCAL_DATE,status) != 29 || in test4125892()
1526 UErrorCode status = U_ZERO_ERROR; in test4141665() local
1527 GregorianCalendar *cal = new GregorianCalendar(status); in test4141665()
1528 if(U_FAILURE(status)) { in test4141665()
1529 dataerrln("Error creating calendar %s", u_errorName(status)); in test4141665()
1539 cal2->setGregorianChange(cut2,status); in test4141665()
1555 UErrorCode status = U_ZERO_ERROR; in test4142933() local
1556 GregorianCalendar *calendar = new GregorianCalendar(status); in test4142933()
1557 if(U_FAILURE(status)) { in test4142933()
1558 dataerrln("Error creating calendar %s", u_errorName(status)); in test4142933()
1563 calendar->roll((UCalendarDateFields)-1, TRUE, status); in test4142933()
1564 if(U_SUCCESS(status)) in test4142933()
1589 UErrorCode status = U_ZERO_ERROR; in test4145158() local
1590 GregorianCalendar *calendar = new GregorianCalendar(status); in test4145158()
1591 if(status == U_USING_FALLBACK_WARNING || U_FAILURE(status)) { in test4145158()
1592 dataerrln("Error creating calendar %s", u_errorName(status)); in test4145158()
1599 calendar->setTime(makeDate(INT32_MIN),status); in test4145158()
1600 int32_t year1 = calendar->get(UCAL_YEAR,status); in test4145158()
1601 int32_t era1 = calendar->get(UCAL_ERA,status); in test4145158()
1603 calendar->setTime(makeDate(INT32_MAX),status); in test4145158()
1604 int32_t year2 = calendar->get(UCAL_YEAR,status); in test4145158()
1605 int32_t era2 = calendar->get(UCAL_ERA,status); in test4145158()
1628 UErrorCode status = U_ZERO_ERROR; in test4145983() local
1629 GregorianCalendar *calendar = new GregorianCalendar(status); in test4145983()
1630 if(U_FAILURE(status)) { in test4145983()
1631 dataerrln("Error creating calendar %s", u_errorName(status)); in test4145983()
1638 calendar->setTime(DATES[i], status); in test4145983()
1639 int32_t year = calendar->get(UCAL_YEAR,status); in test4145983()
1659 UErrorCode status = U_ZERO_ERROR; in test4147269() local
1660 GregorianCalendar *calendar = new GregorianCalendar(status); in test4147269()
1661 if(status == U_USING_FALLBACK_WARNING || U_FAILURE(status)) { in test4147269()
1662 dataerrln("Error creating calendar %s", u_errorName(status)); in test4147269()
1669 calendar->setTime(date,status); in test4147269()
1677 calendar->getTime(status); // Force time computation in test4147269()
1680 if(U_SUCCESS(status)) in test4147269()
1683 ", date after: " + calendar->getTime(status) + in test4147269()
1700 UErrorCode status = U_ZERO_ERROR; in Test4149677() local
1707 if(U_FAILURE(status)) { in Test4149677()
1714 GregorianCalendar *calendar = new GregorianCalendar(zones[i], status); in Test4149677()
1715 if(U_FAILURE(status)) { in Test4149677()
1716 dataerrln("Couldnt' create calendar.: %s", u_errorName(status)); in Test4149677()
1721 calendar->setTime(EARLIEST_SUPPORTED_MILLIS, status); in Test4149677()
1722 if(U_FAILURE(status)) in Test4149677()
1724 if (calendar->get(UCAL_ERA, status) != GregorianCalendar::BC || U_FAILURE(status)) { in Test4149677()
1727 calendar->setTime(LATEST_SUPPORTED_MILLIS, status); in Test4149677()
1728 if(U_FAILURE(status)) in Test4149677()
1730 if (calendar->get(UCAL_ERA, status) != GregorianCalendar::AD || U_FAILURE(status)) { in Test4149677()
1734 calendar->setGregorianChange(LATEST_SUPPORTED_MILLIS, status); in Test4149677()
1735 if(U_FAILURE(status)) in Test4149677()
1760 UErrorCode status = U_ZERO_ERROR; in Test4162587() local
1766 GregorianCalendar *cal = new GregorianCalendar(tz, status); in Test4162587()
1767 if(U_FAILURE(status)) { in Test4162587()
1768 dataerrln("Couldn't create calendar.: %s", u_errorName(status)); in Test4162587()
1778 d0 = cal->getTime(status); in Test4162587()
1779 if(U_FAILURE(status)) in Test4162587()
1786 dPlus = cal->getTime(status); in Test4162587()
1787 if(U_FAILURE(status)) in Test4162587()
1794 dMinus = cal->getTime(status); in Test4162587()
1795 if(U_FAILURE(status)) in Test4162587()
1817 UErrorCode status = U_ZERO_ERROR; in Test4165343() local
1818 GregorianCalendar *calendar = new GregorianCalendar(1996, UCAL_FEBRUARY, 29, status); in Test4165343()
1819 if(U_FAILURE(status)) { in Test4165343()
1820 dataerrln("Couldn't create calendar.: %s", u_errorName(status)); in Test4165343()
1823 UDate start = calendar->getTime(status); in Test4165343()
1824 if(U_FAILURE(status)) in Test4165343()
1827 calendar->add(UCAL_MONTH, 12, status); in Test4165343()
1828 if(U_FAILURE(status)) in Test4165343()
1830 UDate date1 = calendar->getTime(status); in Test4165343()
1831 if(U_FAILURE(status)) in Test4165343()
1834 calendar->setTime(start, status); in Test4165343()
1835 if(U_FAILURE(status)) in Test4165343()
1837 calendar->add(UCAL_YEAR, 1, status); in Test4165343()
1838 if(U_FAILURE(status)) in Test4165343()
1840 UDate date2 = calendar->getTime(status); in Test4165343()
1841 if(U_FAILURE(status)) in Test4165343()
1870 UErrorCode status = U_ZERO_ERROR; in Test4166109() local
1873 GregorianCalendar *calendar = new GregorianCalendar(Locale::getUS(), status); in Test4166109()
1874 if(U_FAILURE(status)) { in Test4166109()
1875 dataerrln("Couldn't create calendar.: %s", u_errorName(status)); in Test4166109()
1880 logln(UnicodeString("Date: ") + calendar->getTime(status)); // 888817448000 in Test4166109()
1882 int32_t firstInMonth = calendar->get(UCAL_DATE, status); in Test4166109()
1883 if(U_FAILURE(status)) in Test4166109()
1888 int32_t returned = calendar->getActualMaximum(field, status); in Test4166109()
1892 " getActualMaximum(WEEK_OF_MONTH, status) = " + returned + in Test4166109()
1914 UErrorCode status = U_ZERO_ERROR; in Test4167060() local
1917 Locale::getUS(), status); in Test4167060()
1918 if(U_FAILURE(status)) { in Test4167060()
1919 dataerrln("Couldn't create SimpleDateFormat - %s", u_errorName(status)); in Test4167060()
1924 new GregorianCalendar(100, UCAL_NOVEMBER, 1, status), in Test4167060()
1925 new GregorianCalendar(-99 /*100BC*/, UCAL_JANUARY, 1, status), in Test4167060()
1926 new GregorianCalendar(1996, UCAL_FEBRUARY, 29, status), in Test4167060()
1928 if(U_FAILURE(status)) { in Test4167060()
1942 calendar->setGregorianChange(EARLIEST_SUPPORTED_MILLIS, status); in Test4167060()
1945 calendar->setGregorianChange(LATEST_SUPPORTED_MILLIS, status); in Test4167060()
1948 if(U_FAILURE(status)) in Test4167060()
1952 UDate dateBefore = calendar->getTime(status); in Test4167060()
1953 if(U_FAILURE(status)) in Test4167060()
1956 int32_t maxYear = calendar->getActualMaximum(field, status); in Test4167060()
1958 …(UnicodeString("maxYear: ") + maxYear + " for " + format->format(calendar->getTime(status), temp)); in Test4167060()
1967 UDate dateAfter = calendar->getTime(status); in Test4167060()
1968 if(U_FAILURE(status)) in Test4167060()
1970 int32_t newYear = calendar->get(field, status); in Test4167060()
1971 if(U_FAILURE(status)) in Test4167060()
1973 calendar->setTime(dateBefore, status); // restore calendar for next use in Test4167060()
1974 if(U_FAILURE(status)) in Test4167060()
2002 UErrorCode status = U_ZERO_ERROR; in Test4197699() local
2003 GregorianCalendar cal(status); in Test4197699()
2007 Locale::getUS(), status); in Test4197699()
2009 if (U_FAILURE(status)) { in Test4197699()
2010 dataerrln("Couldn't initialize test - %s", u_errorName(status)); in Test4197699()
2027 int32_t actWOY = cal.get(UCAL_WEEK_OF_YEAR, status); in Test4197699()
2029 logln(UnicodeString("Ok: ") + dfmt.format(cal.getTime(status), str.remove())); in Test4197699()
2031 errln(UnicodeString("FAIL: ") + dfmt.format(cal.getTime(status), str.remove()) in Test4197699()
2033 cal.add(UCAL_DATE, -8, status); in Test4197699()
2035 cal.add(UCAL_DATE, 1, status); in Test4197699()
2036 logln(dfmt.format(cal.getTime(status), str.remove())); in Test4197699()
2039 if (U_FAILURE(status)) { in Test4197699()
2066 UErrorCode status = U_ZERO_ERROR; in TestJ81() local
2069 GregorianCalendar cal(TimeZone::createTimeZone("GMT"), Locale::getUS(), status); in TestJ81()
2070 SimpleDateFormat fmt("HH:mm 'w'w 'd'D E d MMM yyyy", Locale::getUS(), status); in TestJ81()
2071 if (U_FAILURE(status)) { in TestJ81()
2072 dataerrln("Error: Cannot create calendar or format - %s", u_errorName(status)); in TestJ81()
2126 int32_t woy = cal.get(UCAL_WEEK_OF_YEAR, status); in TestJ81()
2127 int32_t doy = cal.get(UCAL_DAY_OF_YEAR, status); in TestJ81()
2128 int32_t dow = cal.get(UCAL_DAY_OF_WEEK, status); in TestJ81()
2129 if (U_FAILURE(status)) { in TestJ81()
2136 fmt.format(cal.getTime(status), temp.remove()) + in TestJ81()
2139 status = U_ZERO_ERROR; in TestJ81()
2143 fmt.format(cal.getTime(status), temp.remove())); in TestJ81()
2145 status = U_ZERO_ERROR; in TestJ81()
2152 int32_t dom = cal.get(UCAL_DATE, status); in TestJ81()
2153 if (U_FAILURE(status)) { in TestJ81()
2160 fmt.format(cal.getTime(status), temp.remove()) + in TestJ81()
2163 status = U_ZERO_ERROR; in TestJ81()
2170 dom = cal.get(UCAL_DATE, status); in TestJ81()
2171 if (U_FAILURE(status)) { in TestJ81()
2178 fmt.format(cal.getTime(status), temp.remove()) + in TestJ81()
2180 status = U_ZERO_ERROR; in TestJ81()
2183 status = U_ZERO_ERROR; in TestJ81()
2223 status = U_ZERO_ERROR; in TestJ81()
2229 cal.setTime(date, status); in TestJ81()
2230 if (U_FAILURE(status)) { in TestJ81()
2231 … errln((UnicodeString)"FAIL: setTime returned error code " + u_errorName(status)); in TestJ81()
2235 cal.add(DATA[i].field, amount, status); in TestJ81()
2237 cal.roll(DATA[i].field, amount, status); in TestJ81()
2239 if (U_FAILURE(status)) { in TestJ81()
2242 " returned error code " + u_errorName(status)); in TestJ81()
2245 UDate result = cal.getTime(status); in TestJ81()
2246 if (U_FAILURE(status)) { in TestJ81()
2247 … errln((UnicodeString)"FAIL: getTime returned error code " + u_errorName(status)); in TestJ81()
2459 UErrorCode status = U_ZERO_ERROR; in TestT6745() local
2460 Calendar *cal = Calendar::createInstance(Locale(testLocalePtr->locale), status); in TestT6745()
2461 if ( U_FAILURE(status) ) { in TestT6745()
2462 …L: Calendar::createInstance, locale " + testLocalePtr->locale + ", status " + u_errorName(status)); in TestT6745()
2467 status = U_ZERO_ERROR; in TestT6745()
2469 cal->add( testItemPtr->fieldToChange, testItemPtr->fieldDelta, status ); in TestT6745()
2470 if ( U_FAILURE(status) ) { in TestT6745()
2472 … testItemPtr->fieldToChange + "/" + testItemPtr->fieldDelta + ", status " + u_errorName(status)); in TestT6745()
2476 int32_t year = cal->get(UCAL_YEAR, status); in TestT6745()
2477 int32_t month = cal->get(UCAL_MONTH, status); in TestT6745()
2478 int32_t day = cal->get(UCAL_DATE, status); in TestT6745()
2479 …if ( U_FAILURE(status) || year != endYear || month != testItemPtr->endMonth || day != testItemPtr-… in TestT6745()
2481 … testItemPtr->fieldToChange + "/" + testItemPtr->fieldDelta + ", status " + u_errorName(status) + in TestT6745()
2727 UErrorCode status = U_ZERO_ERROR; in makeDate() local
2728 Calendar *cal = Calendar::createInstance(status); in makeDate()
2739 result = cal->getTime(status); in makeDate()
2748 UErrorCode status = U_ZERO_ERROR; in TestDeprecates() local
2749 Calendar *c1 = Calendar::createInstance("ja_JP@calendar=japanese",status); in TestDeprecates()
2750 Calendar *c2 = Calendar::createInstance("ja_JP_TRADITIONAL",status); in TestDeprecates()
2752 if(!c1 || !c2 || U_FAILURE(status)) { in TestDeprecates()
2753 dataerrln("Couldn't create calendars for roll of HOUR: %s", u_errorName(status)); in TestDeprecates()
2758 c1->setTime(c2->getTime(status),status); in TestDeprecates()
2761 c1->roll(Calendar::HOUR,(int32_t)3,status); in TestDeprecates()
2762 c2->roll(UCAL_HOUR,(int32_t)3,status); in TestDeprecates()
2764 if(U_FAILURE(status)) { in TestDeprecates()
2770 c1->setTime(c2->getTime(status),status); in TestDeprecates()
2771 c1->roll(Calendar::HOUR,(UBool)FALSE,status); in TestDeprecates()
2772 c2->roll(UCAL_HOUR,(UBool)FALSE,status); in TestDeprecates()
2774 if(U_FAILURE(status)) { in TestDeprecates()
2783 status = U_ZERO_ERROR; in TestDeprecates()
2785 c1 = Calendar::createInstance("th_TH_TRADITIONAL",status); in TestDeprecates()
2786 c2 = Calendar::createInstance("th_TH@calendar=buddhist",status); in TestDeprecates()
2788 if(!c1 || !c2 || U_FAILURE(status)) { in TestDeprecates()
2794 c1->setTime(c2->getTime(status),status); in TestDeprecates()
2797 c1->add(Calendar::HOUR,(int32_t)1,status); in TestDeprecates()
2799 if(U_FAILURE(status)) { in TestDeprecates()
2800 errln("Error code when trying to add Calendar::HOUR - %s", u_errorName(status)); in TestDeprecates()
2803 c2->add(UCAL_HOUR,(int32_t)1,status); in TestDeprecates()
2805 if(U_FAILURE(status)) { in TestDeprecates()
2806 errln("Error code when trying to add - UCAL_HOUR %s", u_errorName(status)); in TestDeprecates()
2814 status = U_ZERO_ERROR; in TestDeprecates()
2816 c1 = Calendar::createInstance("es_ES",status); in TestDeprecates()
2817 c2 = Calendar::createInstance("es_ES",status); in TestDeprecates()
2819 if(!c1 || !c2 || U_FAILURE(status)) { in TestDeprecates()
2825 c1->setTime(c2->getTime(status),status); in TestDeprecates()
2828 c1->add(Calendar::YEAR,(int32_t)9,status); in TestDeprecates()
2829 c2->add(UCAL_YEAR,(int32_t)9,status); in TestDeprecates()
2831 if(U_FAILURE(status)) { in TestDeprecates()
2844 UErrorCode status = U_ZERO_ERROR; in TestT8057() local
2845 GregorianCalendar *cal = (GregorianCalendar*)Calendar::createInstance(status); in TestT8057()
2846 if(U_FAILURE(status)) { in TestT8057()
2847 errln("Error creating Calendar: %s", u_errorName(status)); in TestT8057()
2856 UDate t = cal->getTime(status); in TestT8057()
2857 if(U_FAILURE(status)) { in TestT8057()
2865 cal->add(UCAL_YEAR, 1, status); in TestT8057()
2866 t = cal->getTime(status); in TestT8057()
2867 if (U_SUCCESS(status)) { in TestT8057()
2882 UErrorCode status = U_ZERO_ERROR; in TestT8596() local
2883 GregorianCalendar *gc = new GregorianCalendar(*TimeZone::getGMT(), status); in TestT8596()
2885 if (U_FAILURE(status)) { in TestT8596()
2886 dataerrln("Error creating Calendar: %s", u_errorName(status)); in TestT8596()
2897 gc->get(UCAL_YEAR, status); in TestT8596()
2906 int32_t maxWeeks = gc->getActualMaximum(UCAL_WEEK_OF_YEAR, status); in TestT8596()
2908 if (U_FAILURE(status)) { in TestT8596()
2909 errln("Error calendar calculation: %s", u_errorName(status)); in TestT8596()
2924 UErrorCode status = U_ZERO_ERROR; in TestT9452() local
2925 GregorianCalendar cal(TimeZone::createTimeZone("Pacific/Apia"), status); in TestT9452()
2926 failure(status, "initializing GregorianCalendar"); in TestT9452()
2928 SimpleDateFormat sdf(UnicodeString("y-MM-dd'T'HH:mm:ssZZZZZ"), status); in TestT9452()
2929 failure(status, "initializing SimpleDateFormat"); in TestT9452()
2938 UDate d = cal.getTime(status); in TestT9452()
2939 if (!failure(status, "getTime for initial date")) { in TestT9452()
2944 cal.add(UCAL_DATE, 1, status); in TestT9452()
2945 failure(status, "add 1 day"); in TestT9452()
2946 d = cal.getTime(status); in TestT9452()
2947 failure(status, "getTime after +1 day"); in TestT9452()
2954 cal.add(UCAL_DATE, -1, status); in TestT9452()
2955 failure(status, "subtract 1 day"); in TestT9452()
2956 d = cal.getTime(status); in TestT9452()
2957 failure(status, "getTime after -1 day"); in TestT9452()
2969 UErrorCode status = U_ZERO_ERROR; in TestT11632() local
2970 GregorianCalendar cal(TimeZone::createTimeZone("Pacific/Apia"), status); in TestT11632()
2971 if(U_FAILURE(status)) { in TestT11632()
2972 dataerrln("Error creating Calendar: %s", u_errorName(status)); in TestT11632()
2975 failure(status, "Calendar::createInstance(status)"); in TestT11632()
2977 failure(status, "clear calendar"); in TestT11632()
2979 failure(status, "set hour value in calendar"); in TestT11632()
2980 SimpleDateFormat sdf(UnicodeString("y-MM-dd'T'HH:mm:ss"), status); in TestT11632()
2981 failure(status, "initializing SimpleDateFormat"); in TestT11632()
2984 UDate d = cal.getTime(status); in TestT11632()
2985 if (!failure(status, "getTime for date")) { in TestT11632()
2991 failure(status, "clear calendar"); in TestT11632()
2993 failure(status, "set hour value in calendar"); in TestT11632()
2995 d = cal.getTime(status); in TestT11632()
2996 if (!failure(status, "getTime for initial date")) { in TestT11632()
3010 UErrorCode status = U_ZERO_ERROR; in TestPersianCalOverflow() local
3011 Calendar* cal = Calendar::createInstance(Locale(localeID), status); in TestPersianCalOverflow()
3012 if(U_FAILURE(status)) { in TestPersianCalOverflow()
3013 … dataerrln("FAIL: Calendar::createInstance for localeID %s: %s", localeID, u_errorName(status)); in TestPersianCalOverflow()
3019 status = U_ZERO_ERROR; in TestPersianCalOverflow()
3022 month = cal->get(UCAL_MONTH, status); in TestPersianCalOverflow()
3023 dayOfMonth = cal->get(UCAL_DATE, status); in TestPersianCalOverflow()
3024 if ( U_FAILURE(status) ) { in TestPersianCalOverflow()
3025 …lendar->get MONTH/DATE for localeID %s, julianDay %d, status %s", localeID, jd, u_errorName(status… in TestPersianCalOverflow()
3040 UErrorCode status = U_ZERO_ERROR; in TestIslamicCalOverflow() local
3041 Calendar* cal = Calendar::createInstance(Locale(localeID), status); in TestIslamicCalOverflow()
3042 if(U_FAILURE(status)) { in TestIslamicCalOverflow()
3043 … dataerrln("FAIL: Calendar::createInstance for localeID %s: %s", localeID, u_errorName(status)); in TestIslamicCalOverflow()
3049 status = U_ZERO_ERROR; in TestIslamicCalOverflow()
3052 year = cal->get(UCAL_YEAR, status); in TestIslamicCalOverflow()
3053 month = cal->get(UCAL_MONTH, status); in TestIslamicCalOverflow()
3054 dayOfMonth = cal->get(UCAL_DATE, status); in TestIslamicCalOverflow()
3055 if ( U_FAILURE(status) ) { in TestIslamicCalOverflow()
3056 …r->get YEAR/MONTH/DATE for localeID %s, julianDay %d, status %s", localeID, jd, u_errorName(status… in TestIslamicCalOverflow()
3068 UErrorCode status = U_ZERO_ERROR; in TestWeekOfYear13548() local
3069 LocalPointer<Calendar> cal(Calendar::createInstance(status)); in TestWeekOfYear13548()
3070 failure(status, "Calendar::createInstance(status)"); in TestWeekOfYear13548()
3075 int32_t resultYear = cal->get(UCAL_YEAR, status); in TestWeekOfYear13548()
3076 failure(status, "get(UCAL_YEAR, status)"); in TestWeekOfYear13548()