mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Add a test for tail -c <BYTES> <FILE>
This commit is contained in:
parent
1922267076
commit
445233389e
2 changed files with 9 additions and 0 deletions
2
tests/fixtures/tail/foobar_bytes_single.expected
vendored
Normal file
2
tests/fixtures/tail/foobar_bytes_single.expected
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
diez
|
||||||
|
once
|
|
@ -57,3 +57,10 @@ fn test_single_big_args() {
|
||||||
assert_eq!(result.stdout, at.read(BIG_EXPECTED));
|
assert_eq!(result.stdout, at.read(BIG_EXPECTED));
|
||||||
cleanup_big_test_files(&at);
|
cleanup_big_test_files(&at);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_bytes_single() {
|
||||||
|
let (at, mut ucmd) = testing(UTIL_NAME);
|
||||||
|
let result = ucmd.arg("-c").arg("10").arg(INPUT).run();
|
||||||
|
assert_eq!(result.stdout, at.read("foobar_bytes_single.expected"));
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue