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:
commit
62265656b4
4 changed files with 63 additions and 42 deletions
|
@ -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!());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue