Skip to content

Commit ec98099

Browse files
Renegade334aduh95
authored andcommitted
test: update Intl tests for CLDR 49
* Accept prepended apostrophe to 2-digit year output (https://unicode-org.atlassian.net/browse/CLDR-19384) * Avoid British/Irish metazone, as its behavior has changed (https://unicode-org.atlassian.net/browse/CLDR-19382) Signed-off-by: Renegade334 <rene@renegade334.me.uk> PR-URL: #66992 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Richard Lau <richard.lau@ibm.com>
1 parent 70a5885 commit ec98099

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎test/parallel/test-datetime-change-notify.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const cases = [
2525
expected: /Pacific (?:Standard|Daylight) Time/,
2626
},
2727
{
28-
timeZone: 'Europe/Dublin',
29-
expected: /Irish Standard Time|Greenwich Mean Time/,
28+
timeZone: 'Europe/Amsterdam',
29+
expected: /Central European (?:Standard|Summer) Time/,
3030
},
3131
];
3232

‎test/parallel/test-intl.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ if (!common.hasIntl) {
8989
// Check with toLocaleString
9090
{
9191
const localeString = dtf.format(date0);
92-
assert.strictEqual(localeString, 'Jan 70');
92+
// CLDR 49 prepends a U+2019 RIGHT SINGLE QUOTATION MARK to `yy` formats for English locales
93+
assert.match(localeString, /Jan \u2019?70/);
9394
}
9495
// Options to request GMT
9596
const optsGMT = { timeZone: GMT };

0 commit comments

Comments
 (0)