diff options
Diffstat (limited to 'tests/more.test')
-rw-r--r-- | tests/more.test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/more.test b/tests/more.test index 4dcf6d85..ac701f77 100644 --- a/tests/more.test +++ b/tests/more.test @@ -9,6 +9,9 @@ line1 line2 EOF -testing "non-tty" "more file1 | cat -" "line1\nline2\n" "" "" +# For non-tty output, headers are shown even if there's only one file. +testing "non-tty" "more file1 | cat -" "::::::::::::::\nfile1\n::::::::::::::\nline1\nline2\n" "" "" + +testing "directory" "more ." "\n*** .: directory ***\n\n" "" "" rm file1 |