File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,15 @@ assert.strictEqual(punycode.decode(
1818 'Willst du die Blthe des frhen, die Frchte des spteren Jahres-x9e96lkal' ) ,
1919 'Willst du die Blüthe des frühen, die Früchte des späteren Jahres' ) ;
2020assert . strictEqual ( punycode . decode ( 'wgv71a119e' ) , '日本語' ) ;
21+ assert . throws ( ( ) => {
22+ punycode . decode ( ' ' ) ;
23+ } , / ^ R a n g e E r r o r : I n v a l i d i n p u t $ / ) ;
24+ assert . throws ( ( ) => {
25+ punycode . decode ( 'α-' ) ;
26+ } , / ^ R a n g e E r r o r : I l l e g a l i n p u t > = 0 x 8 0 \( n o t a b a s i c c o d e p o i n t \) $ / ) ;
27+ assert . throws ( ( ) => {
28+ punycode . decode ( 'あ' ) ;
29+ } , / ^ R a n g e E r r o r : O v e r f l o w : i n p u t n e e d s w i d e r i n t e g e r s t o p r o c e s s $ / ) ;
2130
2231// http://tools.ietf.org/html/rfc3492#section-7.1
2332const tests = [
You can’t perform that action at this time.
0 commit comments