]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: expand: test for lines starting with both spaces and tabs
authorPádraig Brady <P@draigBrady.com>
Thu, 10 Jul 2008 08:36:49 +0000 (09:36 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 11 Jul 2008 12:03:23 +0000 (14:03 +0200)
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.

tests/misc/expand

index b386737b1ecc5a5213d120fdd43e06e55f9ea5d0..468fdeebd0b1cf958126ee77b0d3e1835b8f1881 100755 (executable)
@@ -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};