1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00
This commit is contained in:
Jim Meyering
1997-01-23 03:02:17 +00:00
parent 161422b9b2
commit 3452006a53
5 changed files with 378 additions and 0 deletions

22
tests/tail/Test.pm Executable file
View File

@@ -0,0 +1,22 @@
package Test;
require 5.002;
use strict;
$Test::input_via_stdin = 1;
my @tv = (
# test name, options, input, expected output, expected return code
#
['1', '+2c', 'abcd', 'bcd', 0],
['2', '+8c', 'abcd', '', 0],
['3', '-1c', 'abcd', 'd', 0],
['4', '-9c', 'abcd', 'abcd', 0],
['5', '-12c', 'x' . ('y' x 12) . 'z', ('y' x 11) . 'z', 0],
);
sub test_vector
{
return @tv;
}
1;