Skip to content

Commit

Permalink
deps: add test for v8 bug in toUpper('ç')
Browse files Browse the repository at this point in the history
* add test for ç/Ç in various locales

PR-URL: #9828
Fixes: #9785
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
  • Loading branch information
srl295 authored and MylesBorins committed Jan 6, 2017
1 parent f2d3afb commit e9b7291
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/parallel/test-intl.js
Expand Up @@ -16,6 +16,16 @@ function haveLocale(loc) {
return locs.indexOf(loc) !== -1;
}

// Always run these. They should always pass, even if the locale
// param is ignored.
assert.strictEqual('Ç'.toLocaleLowerCase('el'), 'ç');
assert.strictEqual('Ç'.toLocaleLowerCase('tr'), 'ç');
assert.strictEqual('Ç'.toLowerCase(), 'ç');

assert.strictEqual('ç'.toLocaleUpperCase('el'), 'Ç');
assert.strictEqual('ç'.toLocaleUpperCase('tr'), 'Ç');
assert.strictEqual('ç'.toUpperCase(), 'Ç');

if (!common.hasIntl) {
const erMsg =
'"Intl" object is NOT present but v8_enable_i18n_support is ' +
Expand Down

0 comments on commit e9b7291

Please sign in to comment.