summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-03-17 17:42:11 +0000
committerJim Meyering <jim@meyering.net>2004-03-17 17:42:11 +0000
commit12b6a3e366920352cfeefc1489b4850a2660f56b (patch)
treebfd4ff3d223431d065a9265351c18ef608d42728 /tests
parent4728a9f2e7fec2295fe94918e7c11f3f6f219950 (diff)
downloadcoreutils-12b6a3e366920352cfeefc1489b4850a2660f56b.tar.xz
(test_vector): New tests epoch, ns-10, ns-max32, ns-relative.
Diffstat (limited to 'tests')
-rw-r--r--tests/date/Test.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/date/Test.pm b/tests/date/Test.pm
index 4b3774ab1..ff4ef998a 100644
--- a/tests/date/Test.pm
+++ b/tests/date/Test.pm
@@ -144,6 +144,20 @@ sub test_vector
# Ensure that we can parse MONTHNAME-DAY-YEAR.
['moname-d-y', '--iso -d May-23-2003', {}, '2003-05-23', 0],
+
+ ['epoch', '--iso=sec -d @31536000', {},
+ '1971-01-01T00:00:00+0000', 0],
+
+ ['ns-10', '--iso=ns -d "1969-12-31 13:00:00.00000001-1100"', {},
+ '1970-01-01T00:00:00,000000010+0000', 0],
+
+ ['ns-max32', '--iso=ns -d "2038-01-19 03:14:07.999999999"', {},
+ '2038-01-19T03:14:07,999999999+0000', 0],
+
+ ['ns-relative',
+ "--iso=ns -d'1970-01-01 00:00:00.1234567 UTC +961062237.987654321 sec'",
+ {}, '2000-06-15T09:43:58,111111021+0000', 0],
+
# FIXME: add a lot more...
);