diff options
author | Jim Meyering <jim@meyering.net> | 2005-09-09 07:22:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-09-09 07:22:27 +0000 |
commit | da31244e99626e9db2da27170f1959ec5d6f21f2 (patch) | |
tree | 0306740ae427e38b562e2eb2eacd8d616e7f4dec /tests | |
parent | 09575c108cb2680b8cfe55b9c3f3423658632181 (diff) | |
download | coreutils-da31244e99626e9db2da27170f1959ec5d6f21f2.tar.xz |
(neg-secs2, fill-1, fill-2): Add new tests.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/misc/date | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc/date b/tests/misc/date index b490c0cc5..cac4b4819 100755 --- a/tests/misc/date +++ b/tests/misc/date @@ -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. |