mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 08:26:22 +02:00
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:
@ -281,7 +281,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn base64_decode_binhex() {
|
||||
let word = Value::test_string("A5\"KC9jRB@IIF'8bF!");
|
||||
let word = Value::test_string(r#"B5"LD@jSCAJJG'9cG!"#);
|
||||
let expected = Value::binary(b"a binhex test".as_slice(), Span::test_data());
|
||||
|
||||
let actual = action(
|
||||
@ -304,7 +304,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn base64_decode_binhex_with_new_line_input() {
|
||||
let word = Value::test_string("A5\"KC9jRB\n@IIF'8bF!");
|
||||
let word = Value::test_string("B5\"LD@jSC\nAJJG'9cG!");
|
||||
let expected = Value::binary(b"a binhex test".as_slice(), Span::test_data());
|
||||
|
||||
let actual = action(
|
||||
|
@ -65,7 +65,7 @@ impl Command for EncodeBase64 {
|
||||
Example {
|
||||
description: "Encode a string with the binhex character set",
|
||||
example: "'Some Data' | encode base64 --character-set binhex",
|
||||
result: Some(Value::test_string(r#"7epXB5"%A@4J"#)),
|
||||
result: Some(Value::test_string(r#"8fpYC5"%BA4K"#)),
|
||||
},
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user