1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

basenc: ignore case with "--base16 --decode"

This commit is contained in:
Daniel Hofstetter 2024-12-17 10:52:25 +01:00
parent 9abf9d0fb5
commit d414dbc83b
2 changed files with 21 additions and 3 deletions

View file

@ -130,6 +130,24 @@ fn test_base16_decode() {
.stdout_only("Hello, World!");
}
#[test]
fn test_base16_decode_lowercase() {
new_ucmd!()
.args(&["--base16", "-d"])
.pipe_in("48656c6c6f2c20576f726c6421")
.succeeds()
.stdout_only("Hello, World!");
}
#[test]
fn test_base16_decode_and_ignore_garbage_lowercase() {
new_ucmd!()
.args(&["--base16", "-d", "-i"])
.pipe_in("48656c6c6f2c20576f726c6421")
.succeeds()
.stdout_only("Hello, World!");
}
#[test]
fn test_base2msbf() {
new_ucmd!()