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: nodejs#9828
Fixes: nodejs#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 italoacasas committed Jan 18, 2017
1 parent 25c7ab7 commit 697e06e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/parallel/test-intl.js
Original file line number Diff line number Diff line change
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 697e06e

Please sign in to comment.