mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
test: du invalid threshold
This commit is contained in:
parent
e5a4c393af
commit
892f1d910a
1 changed files with 11 additions and 0 deletions
|
@ -546,6 +546,17 @@ fn test_du_threshold() {
|
||||||
.stdout_contains("deeper_dir");
|
.stdout_contains("deeper_dir");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_du_invalid_threshold() {
|
||||||
|
let ts = TestScenario::new(util_name!());
|
||||||
|
|
||||||
|
let threshold = "-0";
|
||||||
|
|
||||||
|
ts.ucmd()
|
||||||
|
.arg(format!("--threshold={threshold}"))
|
||||||
|
.fails();
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_du_apparent_size() {
|
fn test_du_apparent_size() {
|
||||||
let ts = TestScenario::new(util_name!());
|
let ts = TestScenario::new(util_name!());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue