diff options
author | Jim Meyering <jim@meyering.net> | 2000-06-15 12:10:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-06-15 12:10:15 +0000 |
commit | e18cb636a88bb9596c88ca8e88ac4c12f3f6c50f (patch) | |
tree | 03e5607fb83824186c0d70ada61ed830474d3eb4 /tests/date | |
parent | 474a9f7a56fbde34a0dcb00a93a7eb9a34199184 (diff) | |
download | coreutils-e18cb636a88bb9596c88ca8e88ac4c12f3f6c50f.tar.xz |
Add tests for getdate.y fix.
Diffstat (limited to 'tests/date')
-rw-r--r-- | tests/date/Test.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/date/Test.pm b/tests/date/Test.pm index f13f77103..0643fbc54 100644 --- a/tests/date/Test.pm +++ b/tests/date/Test.pm @@ -123,6 +123,15 @@ sub test_vector # test for RFC-822 conformance ['rfc822-1', "-R -d '$d1'", {}, "Sun, 19 Jan 1997 08:17:48 +0000", 0], + # Relative seconds, with time. fixed in 2.0j + ['relative-1', "--utc -d '1970-01-01 00:00:00 UTC +961062237 sec' $fmt", + {}, "2000-06-15 09:43:57", 0], + + # Relative seconds, no time. + # This test has problems! It works only if TZ is set to UTC+1 (as below). + ['relative-2', "--utc -d '1970-01-01 UTC +961062237 sec' $fmt", {}, + "2000-06-15 10:43:57", 0], + # FIXME: add a lot more... ); @@ -158,6 +167,7 @@ sub test_vector $Test::env{'date2sec-0'} = ['TZ=UTC+2']; $Test::env{'rfc822-1'} = ['LC_ALL=de_DE TZ=UTC0']; + $Test::env{'relative-2'} = ['TZ=UTC+1']; return @tv; } |