mirror of
https://github.com/uutils/coreutils
synced 2024-12-30 06:53:23 +00:00
b8c383e210
basenc is a brand-new gnu core utility (added less than 3 years ago!), which enables some more encodings.
16 lines
481 B
Rust
16 lines
481 B
Rust
use crate::common::util::*;
|
|
|
|
#[test]
|
|
fn test_z85_not_padded() {
|
|
// The z85 crate deviates from the standard in some cases; we have to catch those
|
|
new_ucmd!()
|
|
.args(&["--z85", "-d"])
|
|
.pipe_in("##########")
|
|
.fails()
|
|
.stderr_only("basenc: error: invalid input");
|
|
new_ucmd!()
|
|
.args(&["--z85"])
|
|
.pipe_in("123")
|
|
.fails()
|
|
.stderr_only("basenc: error: invalid input (length must be multiple of 4 characters)");
|
|
}
|