mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
parent
874c4f23c0
commit
4312f3c43e
2 changed files with 10 additions and 7 deletions
|
@ -379,13 +379,15 @@ fn test_base64_raw_conflicts() {
|
|||
#[test]
|
||||
fn test_base64_single_file() {
|
||||
for algo in ALGOS {
|
||||
new_ucmd!()
|
||||
.arg("--base64")
|
||||
.arg("lorem_ipsum.txt")
|
||||
.arg(format!("--algorithm={algo}"))
|
||||
.succeeds()
|
||||
.no_stderr()
|
||||
.stdout_is_fixture_bytes(format!("base64/{algo}_single_file.expected"));
|
||||
for base64_option in ["--base64", "-b"] {
|
||||
new_ucmd!()
|
||||
.arg(base64_option)
|
||||
.arg("lorem_ipsum.txt")
|
||||
.arg(format!("--algorithm={algo}"))
|
||||
.succeeds()
|
||||
.no_stderr()
|
||||
.stdout_is_fixture_bytes(format!("base64/{algo}_single_file.expected"));
|
||||
}
|
||||
}
|
||||
}
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue