diff options
author | Daijiro Wachi <daijiro.wachi@gmail.com> | 2017-02-09 07:10:39 +0100 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-02-11 10:16:21 -0800 |
commit | 81ef56b3dfbf91613d53c701557bafab84082dbf (patch) | |
tree | 8abaada7ed6759b1283d32fff5637e54ff08df93 /test | |
parent | fe2b5f0dd2f0a85b718334c17d3fceca553a2a16 (diff) | |
download | android-node-v8-81ef56b3dfbf91613d53c701557bafab84082dbf.tar.gz android-node-v8-81ef56b3dfbf91613d53c701557bafab84082dbf.tar.bz2 android-node-v8-81ef56b3dfbf91613d53c701557bafab84082dbf.zip |
test: querystring.escape with multibyte characters
Add a test case for querystring.parse with multibyte characters
under 0x800.
PR-URL: https://github.com/nodejs/node/pull/11251
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-querystring-escape.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/parallel/test-querystring-escape.js b/test/parallel/test-querystring-escape.js index 94f40980bc..17073a66bd 100644 --- a/test/parallel/test-querystring-escape.js +++ b/test/parallel/test-querystring-escape.js @@ -8,6 +8,7 @@ assert.deepStrictEqual(qs.escape(5), '5'); assert.deepStrictEqual(qs.escape('test'), 'test'); assert.deepStrictEqual(qs.escape({}), '%5Bobject%20Object%5D'); assert.deepStrictEqual(qs.escape([5, 10]), '5%2C10'); +assert.deepStrictEqual(qs.escape('Ŋōđĕ'), '%C5%8A%C5%8D%C4%91%C4%95'); // using toString for objects assert.strictEqual( |