summaryrefslogtreecommitdiff
path: root/tests/tail/Test.pm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-01-23 04:12:43 +0000
committerJim Meyering <jim@meyering.net>1997-01-23 04:12:43 +0000
commitb66a30133ffebbb8638999d95292fdd21c9621da (patch)
tree0dadb5a9691156c82bae6c0f966d5c195b1bf9cb /tests/tail/Test.pm
parent598a7bda467d7bdca3dcf1923503e00ddd554a2b (diff)
downloadcoreutils-b66a30133ffebbb8638999d95292fdd21c9621da.tar.xz
.
Diffstat (limited to 'tests/tail/Test.pm')
-rwxr-xr-xtests/tail/Test.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/tail/Test.pm b/tests/tail/Test.pm
index 052e79a53..5a0fddad9 100755
--- a/tests/tail/Test.pm
+++ b/tests/tail/Test.pm
@@ -42,7 +42,7 @@ my @tv = (
# Since the number is larger than 2^64, this should provoke
# the diagnostic: `tail: 99999999999999999999: number of bytes is so large \
-# that it is not representable' on all systems... for now, probably, maybe.
+# that it is not representable' on all systems... probably, for now, maybe.
['err-3', '-c99999999999999999999', '', '', 1],
['err-4', '-c', '', '', 1],
@@ -53,6 +53,15 @@ my @tv = (
['n-1', '-n 10', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
['n-2', '-n -10', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
['n-3', '-n +10', "x\n" . ("y\n" x 10) . 'z', "y\ny\nz", 0],
+
+# Accept +0 as synonym for +1.
+['n-4', '-n +0', "y\n" x 5, "y\n" x 5, 0],
+['n-4a', '-n +1', "y\n" x 5, "y\n" x 5, 0],
+
+# Note that -0 is *not* a synonym for -1.
+['n-5', '-n -0', "y\n" x 5, '', 0],
+['n-5a', '-n -1', "y\n" x 5, "y\n", 0],
+['n-5b', '-n 0', "y\n" x 5, '', 0],
);
sub test_vector