1
Fork 0
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:
Jeffrey Finkelstein 2022-01-31 19:04:32 -05:00
parent 1f7c08d87b
commit e5361a8c11
2 changed files with 16 additions and 5 deletions

View file

@ -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'");
}