Skip to content

Commit

Permalink
Improve test
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Hofstetter <[email protected]>
  • Loading branch information
sylvestre and cakebaker authored Mar 12, 2024
1 parent 6029fec commit 0134934
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/by-util/test_hashsum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,18 @@ fn test_invalid_arg() {

#[test]
fn test_conflicting_arg() {
new_ucmd!().arg("-tag").arg("--check").fails().code_is(1);
new_ucmd!().arg("-tag").arg("--text").fails().code_is(1);
new_ucmd!()
.arg("--tag")
.arg("--check")
.arg("--md5")
.fails()
.code_is(1);
new_ucmd!()
.arg("--tag")
.arg("--text")
.arg("--md5")
.fails()
.code_is(1);
}

#[test]
Expand Down

0 comments on commit 0134934

Please sign in to comment.