Skip to content

Commit

Permalink
test: querystring.escape with multibyte characters
Browse files Browse the repository at this point in the history
Add a test case for querystring.parse with multibyte characters
under 0x800.

PR-URL: nodejs#11251
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
watilde authored and krydos committed Feb 25, 2017
1 parent aed9f60 commit a65e3a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parallel/test-querystring-escape.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a65e3a9

Please sign in to comment.