mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tests: revise/standardize usage error testing (for dd, install, mktemp, rm, seq, and touch)
This commit is contained in:
parent
6a9660f9f6
commit
d78e1e7399
6 changed files with 45 additions and 62 deletions
|
@ -286,11 +286,7 @@ fn test_rm_force_no_operand() {
|
|||
#[test]
|
||||
fn test_rm_no_operand() {
|
||||
let ts = TestScenario::new(util_name!());
|
||||
ts.ucmd().fails().stderr_is(&format!(
|
||||
"{0}: missing operand\nTry '{1} {0} --help' for more information.\n",
|
||||
ts.util_name,
|
||||
ts.bin_path.to_string_lossy()
|
||||
));
|
||||
ts.ucmd().fails().usage_error("missing operand");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue