mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #1632 from sylvestre/clap-rm
refactor(rm): Move to clap + add a test
This commit is contained in:
commit
5eaab5327c
4 changed files with 135 additions and 72 deletions
|
@ -12,6 +12,14 @@ fn test_rm_one_file() {
|
|||
assert!(!at.file_exists(file));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_rm_failed() {
|
||||
let (_at, mut ucmd) = at_and_ucmd!();
|
||||
let file = "test_rm_one_file";
|
||||
|
||||
ucmd.arg(file).fails(); // Doesn't exist
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_rm_multiple_files() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue