diff options
Diffstat (limited to 'tests/misc/head.pl')
-rwxr-xr-x | tests/misc/head.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc/head.pl b/tests/misc/head.pl index 78644f2a5..1f565cf16 100755 --- a/tests/misc/head.pl +++ b/tests/misc/head.pl @@ -72,6 +72,10 @@ my @Tests = ['no-oct-2', '-010', {IN=>"\n"x12}, {OUT=>"\n"x10}], ['no-oct-3', '-n 08', {IN=>"\n"x12}, {OUT=>"\n"x8}], ['no-oct-4', '-c 08', {IN=>"\n"x12}, {OUT=>"\n"x8}], + + # --zero-terminated + ['zero-1', '-z -n 1', {IN=>"x\0y"}, {OUT=>"x\0"}], + ['zero-2', '-z -n 2', {IN=>"x\0y"}, {OUT=>"x\0y"}], ); @Tests = triple_test \@Tests; |