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:
parent
ff8a83b256
commit
9cd65c766a
1 changed files with 9 additions and 0 deletions
|
@ -530,3 +530,12 @@ fn test_touch_permission_denied_error_msg() {
|
|||
&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."##,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue