summaryrefslogtreecommitdiff
path: root/tests/date
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-04-08 21:45:25 +0000
committerJim Meyering <jim@meyering.net>2000-04-08 21:45:25 +0000
commit0145667581d304fdc8c67ad0a5ccf1432c499ee7 (patch)
tree5aee6621b8b9873df0f2f1bd412b22d509eb63ee /tests/date
parenta641eab06a762200fc693265a0a063c66562679a (diff)
downloadcoreutils-0145667581d304fdc8c67ad0a5ccf1432c499ee7.tar.xz
Add test for rfc822 format and foreign locale settings.
Diffstat (limited to 'tests/date')
-rw-r--r--tests/date/Test.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/date/Test.pm b/tests/date/Test.pm
index 8d8375ace..ca20c7ab2 100644
--- a/tests/date/Test.pm
+++ b/tests/date/Test.pm
@@ -118,6 +118,9 @@ sub test_vector
['datevtime-1', "-d 000909 $fmt", {}, "2000-09-09 00:00:00", 0],
+ # test for RFC-822 conformance
+ ['rfc822-1', "-R -d '$d1'", {}, "Sun, 19 Jan 1997 09:17:48 +0100", 0],
+
# FIXME: add a lot more...
);
@@ -142,6 +145,8 @@ sub test_vector
$Test::env{'date2sec-0'} = ['TZ=UTC+2'];
+ $Test::env{'rfc822-1'} = ['LC_ALL=de_DE'];
+
return @tv;
}