@@ -289,7 +289,7 @@ describe('parsers', function () {
289
289
it ( 'should handle \\r and \\n characters properly' , function ( ) {
290
290
// If a string contains \r or \n characters it will always be send as a bulk string
291
291
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' ]
293
293
function checkReply ( reply ) {
294
294
assert . strictEqual ( reply , entries [ replyCount ] )
295
295
replyCount ++
@@ -300,9 +300,11 @@ describe('parsers', function () {
300
300
returnFatalError : returnFatalError
301
301
} )
302
302
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 ] ) )
304
306
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' ) )
306
308
assert . strictEqual ( replyCount , 4 )
307
309
parser . execute ( new Buffer ( '+foo\r' ) )
308
310
assert . strictEqual ( replyCount , 4 )
0 commit comments