aboutsummaryrefslogtreecommitdiff
path: root/tests/more.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/more.test')
-rw-r--r--tests/more.test5
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