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:
parent
9abf9d0fb5
commit
d414dbc83b
2 changed files with 21 additions and 3 deletions
|
@ -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!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue