]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(neg-secs2, fill-1, fill-2): Add new tests.
authorJim Meyering <jim@meyering.net>
Fri, 9 Sep 2005 07:22:27 +0000 (07:22 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 9 Sep 2005 07:22:27 +0000 (07:22 +0000)
tests/misc/date

index b490c0cc5f08b5c8fc2d1224bcd76382395324d9..cac4b48194ee569a60fb3b441e4a0fbb28b3f628 100755 (executable)
@@ -193,6 +193,7 @@ my @Tests =
      ['empty-fmt', '+', {OUT=>""}],
 
      ['neg-secs', '-d @-22 +%05s', {OUT=>"-0022"}],
+     ['neg-secs2', '-d @-22 +%_5s', {OUT=>"  -22"}],
 
      # Before today's fix, date would print uninitialized data
      # to standard output for an out-of-range date:
@@ -210,6 +211,9 @@ my @Tests =
       {ERR => "\n"},
       {EXIT => 1},
      ],
+
+     ['fill-1', '-d 1999-12-08 +%_3d', {OUT=>'  8'}],
+     ['fill-2', '-d 1999-12-08 +%03d', {OUT=>'008'}],
     );
 
 # Repeat the cross-dst test, using Jan 1, 2005 and every interval from 1..364.