mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
test(rm): Add a test for multiple -f (#1671)
This commit is contained in:
parent
10cd480a01
commit
da362ced71
1 changed files with 18 additions and 0 deletions
|
@ -85,6 +85,24 @@ fn test_rm_force() {
|
||||||
assert!(!at.file_exists(file_b));
|
assert!(!at.file_exists(file_b));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_rm_force_multiple() {
|
||||||
|
let (at, mut ucmd) = at_and_ucmd!();
|
||||||
|
let file_a = "test_rm_force_a";
|
||||||
|
let file_b = "test_rm_force_b";
|
||||||
|
|
||||||
|
ucmd.arg("-f")
|
||||||
|
.arg("-f")
|
||||||
|
.arg("-f")
|
||||||
|
.arg(file_a)
|
||||||
|
.arg(file_b)
|
||||||
|
.succeeds()
|
||||||
|
.no_stderr();
|
||||||
|
|
||||||
|
assert!(!at.file_exists(file_a));
|
||||||
|
assert!(!at.file_exists(file_b));
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_rm_empty_directory() {
|
fn test_rm_empty_directory() {
|
||||||
let (at, mut ucmd) = at_and_ucmd!();
|
let (at, mut ucmd) = at_and_ucmd!();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue