21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /** |
24 /** |
25 * @test |
25 * @test |
26 * @bug 8190918 8202537 8221432 |
26 * @bug 8190918 8202537 8221432 8231273 |
27 * @summary Tests for region dependent calendar data, i.e., |
27 * @summary Tests for region dependent calendar data, i.e., |
28 * firstDayOfWeek and minimalDaysInFirstWeek. |
28 * firstDayOfWeek and minimalDaysInFirstWeek. |
29 * @modules jdk.localedata |
29 * @modules jdk.localedata |
30 * @run main CalendarDataTest |
30 * @run main CalendarDataTest |
31 */ |
31 */ |
38 |
38 |
39 public class CalendarDataTest { |
39 public class CalendarDataTest { |
40 |
40 |
41 // golden data from CLDR |
41 // golden data from CLDR |
42 private static final List<List<String>> FIRSTDAYDATA = List.of( |
42 private static final List<List<String>> FIRSTDAYDATA = List.of( |
43 List.of("1", "AG AR AS AU BD BR BS BT BW BZ CA CN CO DM DO ET GT " + |
43 List.of("1", "AG AS AU BD BR BS BT BW BZ CA CN CO DM DO ET GT " + |
44 "GU HK HN ID IL IN JM JP KE KH KR LA MH MM MO MT MX MZ " + |
44 "GU HK HN ID IL IN JM JP KE KH KR LA MH MM MO MT MX MZ " + |
45 "NI NP PA PE PH PK PR PT PY SA SG SV TH TT TW UM US VE " + |
45 "NI NP PA PE PH PK PR PT PY SA SG SV TH TT TW UM US VE " + |
46 "VI WS YE ZA ZW"), |
46 "VI WS YE ZA ZW"), |
47 List.of("2", "001 AD AI AL AM AN AT AX AZ BA BE BG BM BN BY " + |
47 List.of("2", "001 AD AI AL AM AN AR AT AX AZ BA BE BG BM BN BY " + |
48 "CH CL CM CR CY CZ DE DK EC EE ES FI FJ FO FR GB GE GF GP " + |
48 "CH CL CM CR CY CZ DE DK EC EE ES FI FJ FO FR GB GE GF GP " + |
49 "GR HR HU IE IS IT KG KZ LB LI LK LT LU LV MA MC MD ME MK MN MQ " + |
49 "GR HR HU IE IS IT KG KZ LB LI LK LT LU LV MC MD ME MK MN MQ " + |
50 "MY NL NO NZ PL RE RO RU RS SE SI SK SM TJ TM TN TR UA UY UZ " + |
50 "MY NL NO NZ PL RE RO RS RU SE SI SK SM TJ TM TR UA UY UZ " + |
51 "VA VN XK"), |
51 "VA VN XK"), |
52 List.of("6", "MV"), |
52 List.of("6", "MV"), |
53 List.of("7", "AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY")); |
53 List.of("7", "AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY")); |
54 |
54 |
55 private static final List<List<String>> MINDAYSDATA = List.of( |
55 private static final List<List<String>> MINDAYSDATA = List.of( |