summaryrefslogtreecommitdiff
path: root/tests/misc/expand
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2008-07-10 09:36:49 +0100
committerJim Meyering <meyering@redhat.com>2008-07-11 14:03:23 +0200
commit8461d49df08a241e68d4b0d0b1a2b93bafc1246b (patch)
treeb7f92aa0d95c2c6b26e47055dbb21096ac54cdbe /tests/misc/expand
parentb1a1fcbf578a3d2be1d616b6675a7702c8fde49b (diff)
downloadcoreutils-8461d49df08a241e68d4b0d0b1a2b93bafc1246b.tar.xz
tests: expand: test for lines starting with both spaces and tabs
The expand released in current distributions (Fedora Core 4 - Fedora 9 at least), doesn't expand --initial tabs if spaces are present. tests/misc/expand: Add test to verify --initial works correctly with lines starting with both spaces and tabs.
Diffstat (limited to 'tests/misc/expand')
-rwxr-xr-xtests/misc/expand1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/misc/expand b/tests/misc/expand
index b386737b1..468fdeebd 100755
--- a/tests/misc/expand
+++ b/tests/misc/expand
@@ -28,6 +28,7 @@ my @Tests =
['t1', '--tabs=3', {IN=>"a\tb"}, {OUT=>"a b"}],
['t2', '--tabs=3,6,9', {IN=>"a\tb\tc\td\te"}, {OUT=>"a b c d e"}],
['i1', '--tabs=3 -i', {IN=>"\ta\tb"}, {OUT=>" a\tb"}],
+ ['i2', '--tabs=3 -i', {IN=>" \ta\tb"}, {OUT=>" a\tb"}],
);
my $save_temps = $ENV{DEBUG};