1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 21:47:46 +00:00

mkdir: require argument

This commit is contained in:
Solomon Victorino 2024-10-17 16:31:44 -06:00 committed by Sylvestre Ledru
parent 93c3d004d7
commit 6ad07a4fb3
2 changed files with 9 additions and 0 deletions

View file

@ -15,6 +15,14 @@ fn test_invalid_arg() {
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
}
#[test]
fn test_no_arg() {
new_ucmd!()
.fails()
.code_is(1)
.stderr_contains("error: the following required arguments were not provided:");
}
#[test]
fn test_mkdir_mkdir() {
new_ucmd!().arg("test_dir").succeeds();