Skip to content

Commit 6e0888a

Browse files
srl295italoacasas
authored andcommitted
deps: add test for v8 bug in toUpper('ç')
* add test for ç/Ç in various locales PR-URL: #9828 Fixes: #9785 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ali Ijaz Sheikh <[email protected]> Reviewed-By: Myles Borins <[email protected]>
1 parent 1c4bf9e commit 6e0888a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/parallel/test-intl.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ function haveLocale(loc) {
1616
return locs.indexOf(loc) !== -1;
1717
}
1818

19+
// Always run these. They should always pass, even if the locale
20+
// param is ignored.
21+
assert.strictEqual('Ç'.toLocaleLowerCase('el'), 'ç');
22+
assert.strictEqual('Ç'.toLocaleLowerCase('tr'), 'ç');
23+
assert.strictEqual('Ç'.toLowerCase(), 'ç');
24+
25+
assert.strictEqual('ç'.toLocaleUpperCase('el'), 'Ç');
26+
assert.strictEqual('ç'.toLocaleUpperCase('tr'), 'Ç');
27+
assert.strictEqual('ç'.toUpperCase(), 'Ç');
28+
1929
if (!common.hasIntl) {
2030
const erMsg =
2131
'"Intl" object is NOT present but v8_enable_i18n_support is ' +

0 commit comments

Comments
 (0)