From 81ef56b3dfbf91613d53c701557bafab84082dbf Mon Sep 17 00:00:00 2001 From: Daijiro Wachi Date: Thu, 9 Feb 2017 07:10:39 +0100 Subject: [PATCH] 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 Reviewed-By: James M Snell --- test/parallel/test-querystring-escape.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/parallel/test-querystring-escape.js b/test/parallel/test-querystring-escape.js index 94f40980bcf818..17073a66bda35a 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(