mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
tests: update to clap 4
This commit is contained in:
parent
d7b08a01b1
commit
153614c40e
2 changed files with 4 additions and 2 deletions
|
@ -21,7 +21,7 @@ fn execution_phrase_double() {
|
|||
.unwrap();
|
||||
assert!(String::from_utf8(output.stderr)
|
||||
.unwrap()
|
||||
.contains(&format!("USAGE:\n {} ls", scenario.bin_path.display(),)));
|
||||
.contains(&format!("Usage: {} ls", scenario.bin_path.display(),)));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -36,8 +36,9 @@ fn execution_phrase_single() {
|
|||
.arg("--some-invalid-arg")
|
||||
.output()
|
||||
.unwrap();
|
||||
dbg!(String::from_utf8(output.stderr.clone()).unwrap());
|
||||
assert!(String::from_utf8(output.stderr).unwrap().contains(&format!(
|
||||
"USAGE:\n {}",
|
||||
"Usage: {}",
|
||||
scenario.fixtures.plus("uu-ls").display()
|
||||
)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue