Lines Matching refs:AnnualTimeZoneRule
163 AnnualTimeZoneRule *atzr;
175 atzr = new AnnualTimeZoneRule("RBTZ_DST1",
177 STARTYEAR, AnnualTimeZoneRule::MAX_YEAR);
180 errln("FAIL: couldn't add AnnualTimeZoneRule 1-1.");
184 atzr = new AnnualTimeZoneRule("RBTZ_STD1",
186 STARTYEAR, AnnualTimeZoneRule::MAX_YEAR);
189 errln("FAIL: couldn't add AnnualTimeZoneRule 1-2.");
200 atzr = new AnnualTimeZoneRule("RBTZ_DST2", -1*HOUR, 1*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule::MAX_YEAR);
203 errln("FAIL: couldn't add AnnualTimeZoneRule 2-1.");
207 atzr = new AnnualTimeZoneRule("RBTZ_STD2", -1*HOUR, 0, dtr, STARTYEAR, AnnualTimeZoneRule::MAX_YEAR);
210 errln("FAIL: couldn't add AnnualTimeZoneRule 2-2.");
221 atzr = new AnnualTimeZoneRule("RBTZ_DST3", -1*HOUR, 1*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule::MAX_YEAR);
224 errln("FAIL: couldn't add AnnualTimeZoneRule 3-1.");
228 atzr = new AnnualTimeZoneRule("RBTZ_STD3", -1*HOUR, 0, dtr, STARTYEAR, AnnualTimeZoneRule::MAX_YEAR);
231 errln("FAIL: couldn't add AnnualTimeZoneRule 3-2.");
400 atzr = new AnnualTimeZoneRule("3RD_ATZ", -1*HOUR, 2*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule::MAX_YEAR);
441 AnnualTimeZoneRule *tzr;
446 tzr = new AnnualTimeZoneRule("EST", -5*HOUR /*rawOffset*/, 0 /*dstSavings*/, dtr, 1967, 2006);
449 errln("FAIL: couldn't add AnnualTimeZoneRule 1.");
454 tzr = new AnnualTimeZoneRule("EST", -5*HOUR, 0, dtr, 2007, AnnualTimeZoneRule::MAX_YEAR);
457 errln("FAIL: couldn't add AnnualTimeZoneRule 2.");
463 tzr = new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, dtr, 1967, 1973);
466 errln("FAIL: couldn't add AnnualTimeZoneRule 3.");
471 tzr = new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, dtr, 1974, 1974);
474 errln("FAIL: couldn't add AnnualTimeZoneRule 4.");
479 tzr = new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, dtr, 1975, 1975);
482 errln("FAIL: couldn't add AnnualTimeZoneRule 5.");
487 tzr = new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, dtr, 1976, 1986);
490 errln("FAIL: couldn't add AnnualTimeZoneRule 6.");
495 tzr = new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, dtr, 1987, 2006);
498 errln("FAIL: couldn't add AnnualTimeZoneRule 7.");
503 tzr = new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, dtr, 2007, AnnualTimeZoneRule::MAX_YEAR);
506 errln("FAIL: couldn't add AnnualTimeZoneRule 7.");
1120 AnnualTimeZoneRule *std, *dst;
1219 AnnualTimeZoneRule *a1 = new AnnualTimeZoneRule("a1", -3*HOUR, 1*HOUR, *dtr1,
1220 2000, AnnualTimeZoneRule::MAX_YEAR);
1221 AnnualTimeZoneRule *a2 = new AnnualTimeZoneRule("a2", -3*HOUR, 1*HOUR, *dtr1,
1222 2000, AnnualTimeZoneRule::MAX_YEAR);
1223 AnnualTimeZoneRule *a3 = new AnnualTimeZoneRule("a3", -3*HOUR, 1*HOUR, *dtr1,
1254 // AnnualTimeZonerule::operator=/clone
1255 AnnualTimeZoneRule a0("a0", 5*HOUR, 1*HOUR, *dtr1, 1990, AnnualTimeZoneRule::MAX_YEAR);
1257 errln("FAIL: AnnualTimeZoneRule a0 is not equal to a1, but got wrong result");
1261 errln("FAIL: AnnualTimeZoneRule a0 is equal to a1, but got wrong result");
1263 AnnualTimeZoneRule *a0c = a0.clone();
1265 errln("FAIL: AnnualTimeZoneRule a0c is equal to a1, but got wrong result");
1269 // AnnualTimeZoneRule::getRule
1271 errln("FAIL: The same DateTimeRule must be returned from AnnualTimeZoneRule a1 and a2");
1274 // AnnualTimeZoneRule::getStartYear
1277 errln((UnicodeString)"FAIL: The start year of AnnualTimeZoneRule a1 must be 2000 - returned: " + startYear);
1280 // AnnualTimeZoneRule::getEndYear
1282 if (endYear != AnnualTimeZoneRule::MAX_YEAR) {
1283 errln((UnicodeString)"FAIL: The start year of AnnualTimeZoneRule a1 must be MAX_YEAR - returned: " + endYear);
1287 errln((UnicodeString)"FAIL: The start year of AnnualTimeZoneRule a3 must be 2010 - returned: " + endYear);
1296 errln("FAIL: AnnualTimeZoneRule::getStartInYear did not work as expected");
1300 errln("FAIL: AnnualTimeZoneRule::getStartInYear returned TRUE for 2015 which is out of rule range");
1343 errln("FAIL: AnnualTimeZoneRule a1 is equivalent to a2, but returned FALSE");
1346 errln("FAIL: AnnualTimeZoneRule a1 is not equivalent to a3, but returned TRUE");
1349 errln("FAIL: AnnualTimeZoneRule a1 is equivalent to itself, but returned FALSE");
1352 errln("FAIL: AnnualTimeZoneRule is not equivalent to TimeArrayTimeZoneRule, but returned TRUE");
1378 errln("FAIL: An InitialTimeZoneRule is not equivalent to an AnnualTimeZoneRule, but returned TRUE");
1492 errln("FAIL: TimeArrayTimeZoneRule is not equivalent to AnnualTimeZoneRule, but returned TRUE");
2633 AnnualTimeZoneRule *atzRule = new AnnualTimeZoneRule(stdName, 18000000, 0, dtRule, 2000, 2010);
2637 atzRule = new AnnualTimeZoneRule(dstName, 18000000, 3600000, dtRule, 2000, 2010);
2641 atzRule = new AnnualTimeZoneRule(stdName, 21600000, 0, dtRule, 2011, AnnualTimeZoneRule::MAX_YEAR);
2645 atzRule = new AnnualTimeZoneRule(dstName, 21600000, 0, dtRule, 2011, AnnualTimeZoneRule::MAX_YEAR);