File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -320,8 +320,8 @@ mod tests {
320
320
fn test_to_base64_crlf_line_break ( ) {
321
321
assert ! ( ![ 0u8 , ..1000 ] . to_base64( Config { line_length: None , ..STANDARD } )
322
322
. contains( "\r \n " ) ) ;
323
- assert_eq ! ( "foobar" . as_bytes ( ) . to_base64( Config { line_length: Some ( 4 ) ,
324
- ..STANDARD } ) ,
323
+ assert_eq ! ( b "foobar". to_base64( Config { line_length: Some ( 4 ) ,
324
+ ..STANDARD } ) ,
325
325
"Zm9v\r \n YmFy" ) ;
326
326
}
327
327
@@ -332,10 +332,10 @@ mod tests {
332
332
..STANDARD } )
333
333
. as_slice( )
334
334
. contains( "\n " ) ) ;
335
- assert_eq ! ( "foobar" . as_bytes ( ) . to_base64( Config { line_length: Some ( 4 ) ,
336
- newline: Newline :: LF ,
337
- ..STANDARD } ) ,
338
- "Zm9v\n YmFy" . to_string ( ) ) ;
335
+ assert_eq ! ( b "foobar". to_base64( Config { line_length: Some ( 4 ) ,
336
+ newline: Newline :: LF ,
337
+ ..STANDARD } ) ,
338
+ "Zm9v\n YmFy" ) ;
339
339
}
340
340
341
341
#[ test]
You can’t perform that action at this time.
0 commit comments