Permalink
Browse files

Test encoding in bulk reply

  • Loading branch information...
1 parent d34ec08 commit a0f7d34685a68874e364445bc449edbe1a49ca8b @pietern pietern committed Nov 25, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/reader.js
View
@@ -43,6 +43,12 @@ exports.testBulkReply = function() {
assert.equal("foo", reader.get());
}
+exports.testBulkReplyWithEncoding = function() {
+ var reader = new hiredis.Reader();
+ reader.feed("$" + Buffer.byteLength("") + "\r\n\r\n");
+ assert.equal("", reader.get());
+}
+
exports.testNullMultiBulkReply = function() {
var reader = new hiredis.Reader();
reader.feed("*-1\r\n");

0 comments on commit a0f7d34

Please sign in to comment.