Browse Source

deps: add test for v8 bug in toUpper('ç')

* add test for ç/Ç in various locales

PR-URL: https://github.com/nodejs/node/pull/9828
Fixes: https://github.com/nodejs/node/issues/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>
v7.x
Steven R. Loomis 8 years ago
committed by Italo A. Casas
parent
commit
6e0888ad9e
No known key found for this signature in database GPG Key ID: 23EFEFE93C4CFFFE
  1. 10
      test/parallel/test-intl.js

10
test/parallel/test-intl.js

@ -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 ' +

Loading…
Cancel
Save