summaryrefslogtreecommitdiff
path: root/tests/tail/Test.pm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-01-23 04:00:19 +0000
committerJim Meyering <jim@meyering.net>1997-01-23 04:00:19 +0000
commit5ac433d29205ab37065fe9ef41a04bf0a51de6dd (patch)
tree4e59082b569f1a1a8c7cb53460c7adb801bf194a /tests/tail/Test.pm
parentb22469537b8b46b1de3186c9c1716afb832c2bab (diff)
downloadcoreutils-5ac433d29205ab37065fe9ef41a04bf0a51de6dd.tar.xz
.
Diffstat (limited to 'tests/tail/Test.pm')
-rwxr-xr-xtests/tail/Test.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tail/Test.pm b/tests/tail/Test.pm
index c0936e1e5..052e79a53 100755
--- a/tests/tail/Test.pm
+++ b/tests/tail/Test.pm
@@ -46,9 +46,13 @@ my @tv = (
['err-3', '-c99999999999999999999', '', '', 1],
['err-4', '-c', '', '', 1],
-# Same as -l 10
+# Same as -n 10
['stdin-1', '-', '', '', 0],
['stdin-2', '-', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
+
+['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],
);
sub test_vector