1
Fork 0
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:
Roy Ivy III 2020-05-03 15:15:14 -05:00 committed by GitHub
commit f12c27a57d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 24 deletions

View file

@ -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...