1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

refactor(mkdir): Move to clap + add a test

This commit is contained in:
Sylvestre Ledru 2020-11-08 17:49:41 +01:00
parent a3f3a050a8
commit 897bcb2e67
4 changed files with 63 additions and 42 deletions

View file

@ -13,6 +13,16 @@ fn test_mkdir_mkdir() {
new_ucmd!().arg(TEST_DIR1).succeeds();
}
#[test]
fn test_mkdir_verbose() {
let expected = "mkdir: created directory 'mkdir_test1'\n";
new_ucmd!()
.arg(TEST_DIR1)
.arg("-v")
.run()
.stdout_is(expected);
}
#[test]
fn test_mkdir_dup_dir() {
let scene = TestScenario::new(util_name!());