Skip to content

Commit e66304c

Browse files
authored
Update cmp test with new base64 error (#147)
1 parent d435ea2 commit e66304c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmp/tests/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ fn encode_exact() {
3131
fn difference() {
3232
let x = b"AAB=";
3333
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'));
34+
assert_eq!(
35+
BASE64_STANDARD.decode(x).err().unwrap(),
36+
InvalidLastSymbol { offset: 2, symbol: b'B', symbol_value: 0x01 },
37+
);
3538
let x = b"AA\nB=";
3639
assert_eq!(BASE64.decode(x).err().unwrap(), DecodeError { position: 4, kind: Length });
3740
assert_eq!(BASE64_STANDARD.decode(x).err().unwrap(), InvalidByte(2, b'\n'));

0 commit comments

Comments
 (0)