We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d435ea2 commit e66304cCopy full SHA for e66304c
cmp/tests/lib.rs
@@ -31,7 +31,10 @@ fn encode_exact() {
31
fn difference() {
32
let x = b"AAB=";
33
assert_eq!(BASE64.decode(x).err().unwrap(), DecodeError { position: 2, kind: Trailing });
34
- assert_eq!(BASE64_STANDARD.decode(x).err().unwrap(), InvalidLastSymbol(2, b'B'));
+ assert_eq!(
35
+ BASE64_STANDARD.decode(x).err().unwrap(),
36
+ InvalidLastSymbol { offset: 2, symbol: b'B', symbol_value: 0x01 },
37
+ );
38
let x = b"AA\nB=";
39
assert_eq!(BASE64.decode(x).err().unwrap(), DecodeError { position: 4, kind: Length });
40
assert_eq!(BASE64_STANDARD.decode(x).err().unwrap(), InvalidByte(2, b'\n'));
0 commit comments