mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tests/tail: Test when -n is larger than the number of lines in the file
This commit is contained in:
@@ -23,6 +23,13 @@ fn test_single_default() {
|
||||
assert_eq!(result.stdout, at.read("foobar_single_default.expected"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_n_greater_than_number_of_lines() {
|
||||
let (at, mut ucmd) = testing(UTIL_NAME);
|
||||
let result = ucmd.arg("-n").arg("99999999").arg(FOOBAR_TXT).run();
|
||||
assert_eq!(result.stdout, at.read(FOOBAR_TXT));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_single_big_args() {
|
||||
const FILE: &'static str = "single_big_args.txt";
|
||||
|
||||
Reference in New Issue
Block a user