mirror of
https://github.com/tc39/test262.git
synced 2025-09-26 11:38:50 +02:00
The tests are passing an explicit `hour12` option, which disables any `hourCycle` option and any `u-hc` Unicode extension. Therefore passing input locales with `u-hc` is invalid. ```js let locale = "en-u-hc-h24"; let hcDefault = new Intl.DateTimeFormat(locale, { hour: "numeric" }).resolvedOptions().hourCycle; assert.sameValue(hcDefault, "h24", "hour-cycle through Unicode extension"); let hc24 = new Intl.DateTimeFormat(locale, { hour: "numeric", hour12: false }).resolvedOptions().hourCycle; // Incorrect assertion, because |hc24| uses |hour12|, which disables any // hour-cycle option and the hour-cycle is determined from the locale "en". // That means |hc24| will be "h23". assert.sameValue(hc24, hcDefault); ```