1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57: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] #[test]
fn test_exit_code() { fn test_exit_code() {
new_ucmd!().fails(); new_ucmd!().fails().no_output();
} }
#[test] #[test]
@ -30,7 +30,7 @@ fn test_help() {
#[test] #[test]
fn test_short_options() { fn test_short_options() {
for option in ["-h", "-V"] { for option in ["-h", "-V"] {
new_ucmd!().arg(option).fails().stdout_is(""); new_ucmd!().arg(option).fails().no_output();
} }
} }
@ -39,7 +39,7 @@ fn test_conflict() {
new_ucmd!() new_ucmd!()
.args(&["--help", "--version"]) .args(&["--help", "--version"])
.fails() .fails()
.stdout_is(""); .no_output();
} }
#[test] #[test]

View file

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