mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2026-01-20 04:01:06 +00:00
- ref: <https://users.rust-lang.org/t/imports-can-only-refer-to-extern-crate-names/24388> @@ <https://archive.is/iCaXp>
18 lines
359 B
Rust
18 lines
359 B
Rust
use crate::common::util::*;
|
|
|
|
#[test]
|
|
fn test_arch() {
|
|
let (_, mut ucmd) = at_and_ucmd!();
|
|
|
|
let result = ucmd.run();
|
|
assert!(result.success);
|
|
}
|
|
|
|
#[test]
|
|
fn test_arch_help() {
|
|
let (_, mut ucmd) = at_and_ucmd!();
|
|
|
|
let result = ucmd.arg("--help").run();
|
|
assert!(result.success);
|
|
assert!(result.stdout.contains("architecture name"));
|
|
}
|