mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
link: update to clap 4
This commit is contained in:
parent
6eb7c64f7a
commit
838479f86a
3 changed files with 9 additions and 11 deletions
|
@ -50,9 +50,9 @@ fn test_link_nonexistent_file() {
|
|||
fn test_link_one_argument() {
|
||||
let (_, mut ucmd) = at_and_ucmd!();
|
||||
let file = "test_link_argument";
|
||||
ucmd.args(&[file]).fails().stderr_contains(
|
||||
"error: The argument '<FILES>...' requires at least 2 values but only 1 was provided",
|
||||
);
|
||||
ucmd.args(&[file])
|
||||
.fails()
|
||||
.stderr_contains("requires 2 values");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -63,7 +63,7 @@ fn test_link_three_arguments() {
|
|||
"test_link_argument2",
|
||||
"test_link_argument3",
|
||||
];
|
||||
ucmd.args(&arguments[..]).fails().stderr_contains(
|
||||
format!("error: The value '{}' was provided to '<FILES>...' but it wasn't expecting any more values", arguments[2]),
|
||||
);
|
||||
ucmd.args(&arguments[..])
|
||||
.fails()
|
||||
.stderr_contains("requires 2 values");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue