We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed0086f commit 3160b02Copy full SHA for 3160b02
test/parallel/test-punycode.js
@@ -24,6 +24,15 @@ assert.strictEqual(
24
'Willst du die Blüthe des frühen, die Früchte des späteren Jahres'
25
);
26
assert.strictEqual(punycode.decode('wgv71a119e'), '日本語');
27
+assert.throws(() => {
28
+ punycode.decode(' ');
29
+}, /^RangeError: Invalid input$/);
30
31
+ punycode.decode('α-');
32
+}, /^RangeError: Illegal input >= 0x80 \(not a basic code point\)$/);
33
34
+ punycode.decode('あ');
35
+}, /^RangeError: Overflow: input needs wider integers to process$/);
36
37
// http://tools.ietf.org/html/rfc3492#section-7.1
38
const tests = [
0 commit comments