tests/tail: add test for as an alias for stdin

This commit is contained in:
Thomas Queiroz
2021-08-01 17:20:30 -04:00
parent 940559f0e1
commit 6127ea9642
+9
View File
@@ -23,6 +23,15 @@ fn test_stdin_default() {
.stdout_is_fixture("foobar_stdin_default.expected");
}
#[test]
fn test_stdin_explicit() {
new_ucmd!()
.pipe_in_fixture(FOOBAR_TXT)
.arg("-")
.run()
.stdout_is_fixture("foobar_stdin_default.expected");
}
#[test]
fn test_single_default() {
new_ucmd!()