2020-05-25 17:05:26 +00:00
|
|
|
use crate::common::util::*;
|
2020-04-28 07:34:55 +00:00
|
|
|
|
2020-04-29 17:03:22 +00:00
|
|
|
#[test]
|
|
|
|
fn test_df_compatible_no_size_arg() {
|
|
|
|
let (_, mut ucmd) = at_and_ucmd!();
|
|
|
|
let result = ucmd.arg("-a").run();
|
|
|
|
assert!(result.success);
|
|
|
|
}
|
|
|
|
|
2020-04-28 07:34:55 +00:00
|
|
|
#[test]
|
|
|
|
fn test_df_compatible() {
|
|
|
|
let (_, mut ucmd) = at_and_ucmd!();
|
|
|
|
let result = ucmd.arg("-ah").run();
|
|
|
|
assert!(result.success);
|
|
|
|
}
|
2020-04-30 21:02:22 +00:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_df_compatible_type() {
|
|
|
|
let (_, mut ucmd) = at_and_ucmd!();
|
|
|
|
let result = ucmd.arg("-aT").run();
|
|
|
|
assert!(result.success);
|
|
|
|
}
|
2020-04-29 17:03:22 +00:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_df_compatible_si() {
|
|
|
|
let (_, mut ucmd) = at_and_ucmd!();
|
|
|
|
let result = ucmd.arg("-aH").run();
|
|
|
|
assert!(result.success);
|
|
|
|
}
|
|
|
|
|
|
|
|
// ToDO: more tests...
|