1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

refactor(df): use number_prefix like 'ls' instead of doing the display by hand

This commit is contained in:
Sylvestre Ledru 2020-04-29 19:03:22 +02:00 committed by Roy Ivy III
parent 90de33d5d7
commit fc83024ebe
4 changed files with 35 additions and 20 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...