Bump base64 to 0.22.1 (#12757)

# Description
Bumps `base64` to 0.22.1 which fixes the alphabet used for binhex
encoding and decoding. This required updating some test expected output.

Related to PR #12469 where `base64` was also bumped and ran into the
failing tests.

# User-Facing Changes
Bug fix, but still changes binhex encoding and decoding output.

# Tests + Formatting
Updated test expected output.
This commit is contained in:
Ian Manske
2024-05-04 12:56:16 +00:00
committed by GitHub
parent 0d6fbdde4a
commit 1e71cd4777
4 changed files with 10 additions and 10 deletions

View File

@ -15,7 +15,7 @@ fn base64_encode_characterset_binhex() {
echo 'username:password' | encode base64 --character-set binhex
"#);
assert_eq!(actual.out, "F@0NEPjJD97kE\'&bEhFZEP3");
assert_eq!(actual.out, "GA0PFQjKE@8kF'&cFhG[FQ3");
}
#[test]
@ -31,9 +31,9 @@ fn error_when_invalid_character_set_given() {
#[test]
fn base64_decode_characterset_binhex() {
let actual = nu!(r#"
echo "F@0NEPjJD97kE'&bEhFZEP3" | decode base64 --character-set binhex --binary | decode utf-8
"#);
let actual = nu!(
r#""GA0PFQjKE@8kF'&cFhG[FQ3" | decode base64 --character-set binhex --binary | decode utf-8"#
);
assert_eq!(actual.out, "username:password");
}