summaryrefslogtreecommitdiff
path: root/tests/pr/pr-tests.pl
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-10-24 23:18:23 +0100
committerPádraig Brady <P@draigBrady.com>2012-10-25 11:10:27 +0100
commitc83c48411dc7feb8c72b08f918320739940c3a9d (patch)
treeab4ff37141f1d7e8a06368bd9a96a41eed365af8 /tests/pr/pr-tests.pl
parent9517680ed3d4d7baff8a842a052ad405f9e9049f (diff)
downloadcoreutils-c83c48411dc7feb8c72b08f918320739940c3a9d.tar.xz
maint: refactor tests/misc/pr.pl into tests/pr/pr-tests.pl
* tests/misc/pr.pl: Refactor this test into ... * tests/pr/pr-tests.pl: ... here. * tests/local.mk: Remove the reference to the removed test Improved by Jim Meyering
Diffstat (limited to 'tests/pr/pr-tests.pl')
-rwxr-xr-xtests/pr/pr-tests.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pr/pr-tests.pl b/tests/pr/pr-tests.pl
index f20241426..d06b34f8f 100755
--- a/tests/pr/pr-tests.pl
+++ b/tests/pr/pr-tests.pl
@@ -451,6 +451,14 @@ foreach my $t (@tv)
push @Tests, $new_ent;
}
+# Exercise a bug with pr -m -s (commit 553d347)
+push @Tests,
+ ['merge-w-tabs', '-m -s -t',
+ {IN=>{1=>"a\tb\tc\n"}},
+ {IN=>{2=>"m\tn\to\n"}},
+ {IN=>{3=>"x\ty\tz\n"}},
+ {OUT=>join("\t", qw(a b c m n o x y z)) . "\n"} ];
+
@Tests = triple_test \@Tests;
my $save_temps = $ENV{DEBUG};