Lines Matching refs:cases
7 * behavior of a calendar to a certain set of 'test cases', involving
42 void CalendarCaseTest::doTestCases(const TestCase *cases, Calendar *cal) {
51 for(i=0;cases[i].era>=0;i++) {
52 UDate t = (JULIAN_EPOCH+(ONE_DAY*cases[i].julian));
54 logln("Test case %d: julianday%f -> date %f\n", i, cases[i].julian, t);
61 checkField(cal, UCAL_ERA, cases[i].era, status);
62 checkField(cal, UCAL_YEAR, cases[i].year,status);
63 checkField(cal, UCAL_MONTH, cases[i].month - 1,status);
64 checkField(cal, UCAL_DATE, cases[i].day,status);
65 checkField(cal, UCAL_DAY_OF_WEEK, cases[i].dayOfWeek,status);
66 checkField(cal, UCAL_HOUR, cases[i].hour,status);
67 checkField(cal, UCAL_MINUTE, cases[i].min,status);
68 checkField(cal, UCAL_SECOND, cases[i].sec,status);
73 cal->set(UCAL_ERA, cases[i].era);
74 cal->set(UCAL_YEAR, cases[i].year);
75 cal->set(UCAL_MONTH, cases[i].month - 1);
76 cal->set(UCAL_DATE, cases[i].day);
77 cal->set(UCAL_DAY_OF_WEEK, cases[i].dayOfWeek);
78 cal->set(UCAL_HOUR, cases[i].hour);
79 cal->set(UCAL_MINUTE, cases[i].min);
80 cal->set(UCAL_SECOND, cases[i].sec);
108 // =========== Test Cases =====================
121 // Most of these test cases were taken from the back of
210 // Most of these test cases were taken from the back of
264 // Test cases taken from a table of 14 "year types" in the Help file
279 // Test cases for JB#2327
303 // Additional test cases for bugs found during development
333 // A huge list of test cases to make sure that computeTime and computeFields