1
Fork 0
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:
Sylvestre Ledru 2022-02-08 20:51:32 +01:00 committed by GitHub
commit 47b12b31a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 90 additions and 24 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'");
}