From 8bb75cbc01f7b89c071afaefdecbacc27ffe2cfc 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: #11251 --- 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(