@@ -464,17 +464,17 @@ assert.equal('TWFu', (new Buffer('Man')).toString('base64'));
464464{
465465 // big example
466466 const quote = 'Man is distinguished, not only by his reason, but by this ' +
467- 'singular passion from other animals, which is a lust ' +
468- 'of the mind, that by a perseverance of delight in the ' +
469- 'continued and indefatigable generation of knowledge, exceeds ' +
470- ' the short vehemence of any carnal pleasure.';
467+ 'singular passion from other animals, which is a lust ' +
468+ 'of the mind, that by a perseverance of delight in the ' +
469+ 'continued and indefatigable generation of knowledge, ' +
470+ 'exceeds the short vehemence of any carnal pleasure.';
471471 const expected = 'TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb' +
472- '24sIGJ1dCBieSB0aGlzIHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBh ' +
473- 'bmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2YgdGhlIG1pbmQsIHRoYXQgYnk ' +
474- 'gYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGludWVkIG ' +
475- 'FuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBle ' +
476- 'GNlZWRzIHRoZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVh ' +
477- 'c3VyZS4 =';
472+ '24sIGJ1dCBieSB0aGlzIHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlci ' +
473+ 'BhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2YgdGhlIG1pbmQsIHRoYXQ ' +
474+ 'gYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGlu ' +
475+ 'dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZ ' +
476+ 'GdlLCBleGNlZWRzIHRoZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm ' +
477+ '5hbCBwbGVhc3VyZS4 =';
478478 assert . equal ( expected , ( new Buffer ( quote ) ) . toString ( 'base64' ) ) ;
479479
480480 let b = new Buffer ( 1024 ) ;
@@ -484,11 +484,11 @@ assert.equal('TWFu', (new Buffer('Man')).toString('base64'));
484484
485485 // check that the base64 decoder ignores whitespace
486486 const expectedWhite = expected . slice ( 0 , 60 ) + ' \n' +
487- expected . slice ( 60 , 120 ) + ' \n' +
488- expected . slice ( 120 , 180 ) + ' \n' +
489- expected . slice ( 180 , 240 ) + ' \n' +
490- expected . slice ( 240 , 300 ) + '\n' +
491- expected . slice ( 300 , 360 ) + '\n' ;
487+ expected . slice ( 60 , 120 ) + ' \n' +
488+ expected . slice ( 120 , 180 ) + ' \n' +
489+ expected . slice ( 180 , 240 ) + ' \n' +
490+ expected . slice ( 240 , 300 ) + '\n' +
491+ expected . slice ( 300 , 360 ) + '\n' ;
492492 b = new Buffer ( 1024 ) ;
493493 bytesWritten = b . write ( expectedWhite , 0 , 'base64' ) ;
494494 assert . equal ( quote . length , bytesWritten ) ;
@@ -502,11 +502,11 @@ assert.equal('TWFu', (new Buffer('Man')).toString('base64'));
502502
503503 // check that the base64 decoder ignores illegal chars
504504 const expectedIllegal = expected . slice ( 0 , 60 ) + ' \x80' +
505- expected . slice ( 60 , 120 ) + ' \xff' +
506- expected . slice ( 120 , 180 ) + ' \x00' +
507- expected . slice ( 180 , 240 ) + ' \x98' +
508- expected . slice ( 240 , 300 ) + '\x03' +
509- expected . slice ( 300 , 360 ) ;
505+ expected . slice ( 60 , 120 ) + ' \xff' +
506+ expected . slice ( 120 , 180 ) + ' \x00' +
507+ expected . slice ( 180 , 240 ) + ' \x98' +
508+ expected . slice ( 240 , 300 ) + '\x03' +
509+ expected . slice ( 300 , 360 ) ;
510510 b = new Buffer ( expectedIllegal , 'base64' ) ;
511511 assert . equal ( quote . length , b . length ) ;
512512 assert . equal ( quote , b . toString ( 'ascii' , 0 , quote . length ) ) ;
0 commit comments