mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-16 19:56:17 +00:00
Merge pull request #3006 from jfinkels/split-errors
split: correct error message on invalid arg. to -a
This commit is contained in:
commit
47b12b31a6
2 changed files with 90 additions and 24 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