1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

true,false: use no_output() in tests

This commit is contained in:
Daniel Hofstetter 2025-03-14 08:57:30 +01:00
parent 5b649f49e8
commit 77b701cfc4
2 changed files with 6 additions and 6 deletions

View file

@ -8,7 +8,7 @@ use std::fs::OpenOptions;
#[test]
fn test_exit_code() {
new_ucmd!().succeeds();
new_ucmd!().succeeds().no_output();
}
#[test]
@ -30,7 +30,7 @@ fn test_help() {
#[test]
fn test_short_options() {
for option in ["-h", "-V"] {
new_ucmd!().arg(option).succeeds().stdout_is("");
new_ucmd!().arg(option).succeeds().no_output();
}
}
@ -39,7 +39,7 @@ fn test_conflict() {
new_ucmd!()
.args(&["--help", "--version"])
.succeeds()
.stdout_is("");
.no_output();
}
#[test]