1
Fork 0
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:
Roy Ivy III 2023-01-08 12:39:49 -06:00
parent 6a9660f9f6
commit d78e1e7399
6 changed files with 45 additions and 62 deletions

View file

@ -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]