1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 03:26:18 +00:00

basenc: handle '--base32 .' arg

This commit is contained in:
Sylvestre Ledru 2024-01-05 21:15:26 +01:00
parent 4f33a375cd
commit 8d24036f5c
3 changed files with 20 additions and 3 deletions

View file

@ -18,3 +18,16 @@ fn test_z85_not_padded() {
.fails()
.stderr_only("basenc: error: invalid input (length must be multiple of 4 characters)\n");
}
#[test]
fn test_invalid_input() {
let error_message = if cfg!(windows) {
"basenc: .: Permission denied"
} else {
"basenc: error: invalid input\n"
};
new_ucmd!()
.args(&["--base32", "."])
.fails()
.stderr_only(error_message);
}