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:
parent
90de33d5d7
commit
fc83024ebe
4 changed files with 35 additions and 20 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