File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ fn difference() {
47
47
DecodeError { position: 4 , kind: Length } ) ;
48
48
assert_eq ! ( x. from_base64( ) . unwrap( ) , vec![ 0 , 0 ] ) ;
49
49
assert_eq ! ( base64:: decode( x) . err( ) . unwrap( ) ,
50
- base64:: DecodeError :: InvalidByte ( 2 , b'\n' ) ) ;
50
+ base64:: DecodeError :: InvalidLength ) ;
51
51
let x = b"AAB" ;
52
52
assert_eq ! ( BASE64 . decode( x) . err( ) . unwrap( ) ,
53
53
DecodeError { position: 0 , kind: Length } ) ;
Original file line number Diff line number Diff line change 116
116
//! | Input | `data-encoding` | `rustc` | `base64` | GNU `base64` |
117
117
//! | ---------- | --------------- | -------- | -------- | ------------- |
118
118
//! | `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` |
120
120
//! | `AAB` | `Length(0)` | `[0, 0]` | `[0, 0]` | Invalid input |
121
121
//! | `A\rA\nB=` | `Length(4)` | `[0, 0]` | `Err(1)` | Invalid input |
122
122
//! | `-_\r\n` | `Symbol(0)` | `[251]` | `Err(0)` | Invalid input |
You can’t perform that action at this time.
0 commit comments