mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests: adapt to clap's modified error messages
This commit is contained in:
parent
817a832f33
commit
3eeb5dda30
13 changed files with 17 additions and 25 deletions
|
@ -36,18 +36,12 @@ fn test_hex_rejects_sign_after_identifier() {
|
|||
.args(&["-0x-123ABC"])
|
||||
.fails()
|
||||
.no_stdout()
|
||||
.stderr_contains(
|
||||
"Found argument '-0' which wasn't expected, or isn't valid in this context",
|
||||
)
|
||||
.stderr_contains("For more information try '--help'");
|
||||
.stderr_contains("unexpected argument '-0' found");
|
||||
new_ucmd!()
|
||||
.args(&["-0x+123ABC"])
|
||||
.fails()
|
||||
.no_stdout()
|
||||
.stderr_contains(
|
||||
"Found argument '-0' which wasn't expected, or isn't valid in this context",
|
||||
)
|
||||
.stderr_contains("For more information try '--help'");
|
||||
.stderr_contains("unexpected argument '-0' found");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue