diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2017-02-11 14:00:22 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2017-02-11 15:23:51 +0100 |
commit | 46345b937448dbeac54f33bd3a8d38be4c1dc1ef (patch) | |
tree | 19d5223d5a8e44b6a5d9afcba198cc05b927dbcc /test | |
parent | 75019dfa67f37245ff099eebc61199272696e9f4 (diff) | |
download | android-node-v8-46345b937448dbeac54f33bd3a8d38be4c1dc1ef.tar.gz android-node-v8-46345b937448dbeac54f33bd3a8d38be4c1dc1ef.tar.bz2 android-node-v8-46345b937448dbeac54f33bd3a8d38be4c1dc1ef.zip |
src: make --icu-data-dir= switch testable
Move some code around so we can properly test whether the switch
actually does anything.
PR-URL: https://github.com/nodejs/node/pull/11255
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-intl-no-icu-data.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/parallel/test-intl-no-icu-data.js b/test/parallel/test-intl-no-icu-data.js new file mode 100644 index 0000000000..dd14c14671 --- /dev/null +++ b/test/parallel/test-intl-no-icu-data.js @@ -0,0 +1,7 @@ +// Flags: --icu-data-dir=test/fixtures/empty/ +'use strict'; +require('../common'); +const assert = require('assert'); + +// No-op when ICU case mappings are unavailable. +assert.strictEqual('ç'.toLocaleUpperCase('el'), 'ç'); |