summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-09-14 09:54:15 +0000
committerJim Meyering <jim@meyering.net>2005-09-14 09:54:15 +0000
commitf6198493b8f18025a3861ba42f1097d082281ec2 (patch)
tree646d950c9e91f6685b75034cb0c85eb3dfdd7bd1
parente386e5642d97372e213cbfc23db59156b4802692 (diff)
downloadcoreutils-f6198493b8f18025a3861ba42f1097d082281ec2.tar.xz
(tz-5w, tz-5wf): Test new %:z format with a field width.
-rwxr-xr-xtests/misc/date5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/misc/date b/tests/misc/date
index 6dae0e019..0b8a3d77e 100755
--- a/tests/misc/date
+++ b/tests/misc/date
@@ -193,6 +193,11 @@ my @Tests =
['tz-5', '+%:z', {OUT=>"-00:01"}, {ENV=>'TZ=XXX0:01'}],
+ # Accept %:z with a field width before the `:'.
+ ['tz-5w','+%8:z', {OUT=>"-0000:01"}, {ENV=>'TZ=XXX0:01'}],
+ # Don't recognize %:z with a field width between the `:' and the `z'.
+ ['tz-5wf', '+%:8z', {OUT=>"%:8z"}, {ENV=>'TZ=XXX0:01'}],
+
['ns-relative',
'--iso=ns', "-d'1970-01-01 00:00:00.1234567 UTC +961062237.987654321 sec'",
{OUT=>"2000-06-15T09:43:58,111111021+0000"}],