mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2026-01-16 02:01:05 +00:00
- ref: <https://users.rust-lang.org/t/imports-can-only-refer-to-extern-crate-names/24388> @@ <https://archive.is/iCaXp>
31 lines
655 B
Rust
31 lines
655 B
Rust
use crate::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!();
|
|
let result = ucmd.arg("-ah").run();
|
|
assert!(result.success);
|
|
}
|
|
|
|
#[test]
|
|
fn test_df_compatible_type() {
|
|
let (_, mut ucmd) = at_and_ucmd!();
|
|
let result = ucmd.arg("-aT").run();
|
|
assert!(result.success);
|
|
}
|
|
|
|
#[test]
|
|
fn test_df_compatible_si() {
|
|
let (_, mut ucmd) = at_and_ucmd!();
|
|
let result = ucmd.arg("-aH").run();
|
|
assert!(result.success);
|
|
}
|
|
|
|
// ToDO: more tests...
|