File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ fn difference() {
4747 DecodeError { position: 4 , kind: Length } ) ;
4848 assert_eq ! ( x. from_base64( ) . unwrap( ) , vec![ 0 , 0 ] ) ;
4949 assert_eq ! ( base64:: decode( x) . err( ) . unwrap( ) ,
50- base64:: DecodeError :: InvalidByte ( 2 , b'\n' ) ) ;
50+ base64:: DecodeError :: InvalidLength ) ;
5151 let x = b"AAB" ;
5252 assert_eq ! ( BASE64 . decode( x) . err( ) . unwrap( ) ,
5353 DecodeError { position: 0 , kind: Length } ) ;
Original file line number Diff line number Diff line change 116116//! | Input | `data-encoding` | `rustc` | `base64` | GNU `base64` |
117117//! | ---------- | --------------- | -------- | -------- | ------------- |
118118//! | `AAB=` | `Trailing(2)` | `[0, 0]` | `[0, 0]` | `\x00\x00` |
119- //! | `AA\nB=` | `Length(4)` | `[0, 0]` | `Err(2) ` | `\x00\x00` |
119+ //! | `AA\nB=` | `Length(4)` | `[0, 0]` | `Length ` | `\x00\x00` |
120120//! | `AAB` | `Length(0)` | `[0, 0]` | `[0, 0]` | Invalid input |
121121//! | `A\rA\nB=` | `Length(4)` | `[0, 0]` | `Err(1)` | Invalid input |
122122//! | `-_\r\n` | `Symbol(0)` | `[251]` | `Err(0)` | Invalid input |
You can’t perform that action at this time.
0 commit comments