1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

head, tail: include presume-input-pipe parameter

This commit is contained in:
DevSabb 2022-03-31 11:16:55 -04:00 committed by Sylvestre Ledru
parent bed7dc5a29
commit 1eee2194a3
4 changed files with 49 additions and 4 deletions

View file

@ -342,3 +342,21 @@ fn test_head_num_with_undocumented_sign_bytes() {
.succeeds()
.stdout_is("abcde");
}
#[test]
fn test_presume_input_pipe_default() {
new_ucmd!()
.args(&["---presume-input-pipe"])
.pipe_in_fixture(INPUT)
.run()
.stdout_is_fixture("lorem_ipsum_default.expected");
}
#[test]
fn test_presume_input_pipe_5_chars() {
new_ucmd!()
.args(&["-c", "5", "---presume-input-pipe"])
.pipe_in_fixture(INPUT)
.run()
.stdout_is_fixture("lorem_ipsum_5_chars.expected");
}