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

Merge pull request #1630 from sylvestre/clap-mkdir

refactor(mkdir): Move to clap + add a test
This commit is contained in:
Sylvestre Ledru 2020-11-17 13:01:09 +01:00 committed by GitHub
commit 62265656b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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!());