mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
Merge pull request #1487 from sylvestre/df-human
refactor and fix some `df` build and cosmetic issues
This commit is contained in:
commit
f12c27a57d
4 changed files with 44 additions and 24 deletions
|
@ -1,5 +1,12 @@
|
|||
use common::util::*;
|
||||
|
||||
#[test]
|
||||
fn test_df_compatible_no_size_arg() {
|
||||
let (_, mut ucmd) = at_and_ucmd!();
|
||||
let result = ucmd.arg("-a").run();
|
||||
assert!(result.success);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_df_compatible() {
|
||||
let (_, mut ucmd) = at_and_ucmd!();
|
||||
|
@ -13,4 +20,12 @@ fn test_df_compatible_type() {
|
|||
let result = ucmd.arg("-aT").run();
|
||||
assert!(result.success);
|
||||
}
|
||||
// TODO
|
||||
|
||||
#[test]
|
||||
fn test_df_compatible_si() {
|
||||
let (_, mut ucmd) = at_and_ucmd!();
|
||||
let result = ucmd.arg("-aH").run();
|
||||
assert!(result.success);
|
||||
}
|
||||
|
||||
// ToDO: more tests...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue