@@ -289,7 +289,7 @@ describe('parsers', function () {
289289 it ( 'should handle \\r and \\n characters properly' , function ( ) {
290290 // If a string contains \r or \n characters it will always be send as a bulk string
291291 var replyCount = 0
292- var entries = [ 'foo\r' , 'foo\r\nbar' , '\r\nfoo ' , 'foo\r\n' , 'foo' , 'foobar' , 'foo\r' , 'äfooöü' , 'abc' ]
292+ var entries = [ 'foo\r' , 'foo\r\nbar' , '\r\nСанкт-Пет ' , 'foo\r\n' , 'foo' , 'foobar' , 'foo\r' , 'äfooöü' , 'abc' ]
293293 function checkReply ( reply ) {
294294 assert . strictEqual ( reply , entries [ replyCount ] )
295295 replyCount ++
@@ -300,9 +300,11 @@ describe('parsers', function () {
300300 returnFatalError : returnFatalError
301301 } )
302302
303- parser . execute ( new Buffer ( '$4\r\nfoo\r\r\n$8\r\nfoo\r\nbar\r\n$5\r\n\r\n' ) )
303+ parser . execute ( new Buffer ( '$4\r\nfoo\r\r\n$8\r\nfoo\r\nbar\r\n$19\r\n\r\n' ) )
304+ parser . execute ( new Buffer ( [ 208 , 161 , 208 , 176 , 208 , 189 , 208 ] ) )
305+ parser . execute ( new Buffer ( [ 186 , 209 , 130 , 45 , 208 , 159 , 208 , 181 , 209 , 130 ] ) )
304306 assert . strictEqual ( replyCount , 2 )
305- parser . execute ( new Buffer ( 'foo \r\n$5\r\nfoo\r\n\r\n' ) )
307+ parser . execute ( new Buffer ( '\r\n$5\r\nfoo\r\n\r\n' ) )
306308 assert . strictEqual ( replyCount , 4 )
307309 parser . execute ( new Buffer ( '+foo\r' ) )
308310 assert . strictEqual ( replyCount , 4 )
0 commit comments