1
Fork 0
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:
Daniel Hofstetter 2023-03-08 15:06:07 +01:00
parent 817a832f33
commit 3eeb5dda30
13 changed files with 17 additions and 25 deletions

View file

@ -151,7 +151,7 @@ fn test_arg1_arg2() {
#[test]
fn test_too_many_args() {
const EXPECTED: &str =
"error: The value 'u' was provided to '[FILE]...' but it wasn't expecting any more values";
"error: unexpected value 'u' for '[FILE]...' found; no more were expected";
let args = ["am", "i", "u"];
new_ucmd!().args(&args).fails().stderr_contains(EXPECTED);