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>
54 lines
1.1 KiB
Rust
54 lines
1.1 KiB
Rust
use crate::common::util::*;
|
|
|
|
#[test]
|
|
fn test_bsd_single_file() {
|
|
new_ucmd!()
|
|
.arg("lorem_ipsum.txt")
|
|
.succeeds()
|
|
.stdout_only_fixture("bsd_single_file.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn test_bsd_multiple_files() {
|
|
new_ucmd!()
|
|
.arg("lorem_ipsum.txt")
|
|
.arg("alice_in_wonderland.txt")
|
|
.succeeds()
|
|
.stdout_only_fixture("bsd_multiple_files.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn test_bsd_stdin() {
|
|
new_ucmd!()
|
|
.pipe_in_fixture("lorem_ipsum.txt")
|
|
.succeeds()
|
|
.stdout_only_fixture("bsd_stdin.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn test_sysv_single_file() {
|
|
new_ucmd!()
|
|
.arg("-s")
|
|
.arg("lorem_ipsum.txt")
|
|
.succeeds()
|
|
.stdout_only_fixture("sysv_single_file.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn test_sysv_multiple_files() {
|
|
new_ucmd!()
|
|
.arg("-s")
|
|
.arg("lorem_ipsum.txt")
|
|
.arg("alice_in_wonderland.txt")
|
|
.succeeds()
|
|
.stdout_only_fixture("sysv_multiple_files.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn test_sysv_stdin() {
|
|
new_ucmd!()
|
|
.arg("-s")
|
|
.pipe_in_fixture("lorem_ipsum.txt")
|
|
.succeeds()
|
|
.stdout_only_fixture("sysv_stdin.expected");
|
|
}
|