mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
split: correct error message on invalid arg. to -a
Correct the error message displayed on an invalid parameter to the `--suffix-length` or `-a` command-line option.
This commit is contained in:
parent
1f7c08d87b
commit
e5361a8c11
2 changed files with 16 additions and 5 deletions
|
@ -440,3 +440,12 @@ fn test_number() {
|
|||
assert_eq!(file_read("xad"), "pqrst");
|
||||
assert_eq!(file_read("xae"), "uvwxyz");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_invalid_suffix_length() {
|
||||
new_ucmd!()
|
||||
.args(&["-a", "xyz"])
|
||||
.fails()
|
||||
.no_stdout()
|
||||
.stderr_contains("invalid suffix length: 'xyz'");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue