Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test payload length with leading colon

  • Loading branch information...
commit 69bfc5494987e004d6e3aa67090d962f36802bd1 1 parent f659aa5
@josh josh authored committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/test.js
View
4 test/test.js
@@ -27,6 +27,10 @@ var ns = require('../lib/ns');
ex(as, '03:', 'Invalid netstring with leading 0');
ex(as, '00:', 'Invalid netstring with leading 0');
},
+ 'leading colon' : function(as) {
+ ex(as, ':', 'Invalid netstring with leading \':\'');
+ ex(as, ':a', 'Invalid netstring with leading \':\'');
+ },
'invalid char' : function(as) {
ex(as, '3;', 'Unexpected character \';\' found at offset 1');
ex(as, ';', 'Unexpected character \';\' found at offset 0');
Please sign in to comment.
Something went wrong with that request. Please try again.