1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

Add tests

Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
This commit is contained in:
Hanif Ariffin 2022-02-03 21:14:56 +08:00
parent ff8a83b256
commit 9cd65c766a

View file

@ -530,3 +530,12 @@ fn test_touch_permission_denied_error_msg() {
&full_path &full_path
)); ));
} }
#[test]
fn test_touch_no_args() {
let mut ucmd = new_ucmd!();
ucmd.fails().stderr_only(
r##"touch: missing file operand
Try 'touch --help' for more information."##,
);
}