From 6127ea9642854d3c596292a448ed6d99515452d1 Mon Sep 17 00:00:00 2001 From: Thomas Queiroz Date: Mon, 12 Jul 2021 19:46:43 -0400 Subject: [PATCH] tests/tail: add test for as an alias for stdin --- tests/by-util/test_tail.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/by-util/test_tail.rs b/tests/by-util/test_tail.rs index e8dd63317..28c3580bb 100644 --- a/tests/by-util/test_tail.rs +++ b/tests/by-util/test_tail.rs @@ -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!()