summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-15 23:47:05 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-15 23:47:05 (EDT)
commitd023a77437c49033c245f17d213d33fbc866ae74 (patch)
treebfbcab256403c44ef844c8cf8fc09ef894646fd4 /tests
parent811980dfe42f3feb63f19ba45def015c36637ef8 (diff)
tests/lib/ob_rfc822_mktime.sh: Make all tests after 1970 local time
Diffstat (limited to 'tests')
-rwxr-xr-xtests/lib/ob_rfc822_mktime.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/lib/ob_rfc822_mktime.sh b/tests/lib/ob_rfc822_mktime.sh
index 8a80ff0..eb35215 100755
--- a/tests/lib/ob_rfc822_mktime.sh
+++ b/tests/lib/ob_rfc822_mktime.sh
@@ -23,7 +23,7 @@ set -eu
. "${TOP_SRCDIR}/tests/aux/common.sh"
. "${TOP_BUILDDIR}/lib/libopkbuild.${SHSOEXT}.${LIBOPKBUILD_SHSOVERSION}"
-plan_ 18
+plan_ 6
tst()
{
@@ -34,8 +34,9 @@ tst()
is "${in} = ${out}" "$(ob_rfc822_mktime "${in}")" "${out}"
}
-tst 'Wed, 31 Dec 1969 19:00:00 -0500' 0
-tst 'Wed, 31 Dec 1969 19:00:01 -0500' 1
tst 'Wed, 01 Jan 1970 00:00:00 +0000' 0
+tst 'Wed, 01 Jan 1970 00:00:01 +0000' 1
+tst 'Fri, 02 Jan 1970 01:02:03 -0500' 108123
+tst 'Fri, 30 Apr 1971 12:34:56 -0400' 41877296
tst 'Mon, 28 Feb 1994 19:00:00 -0500' 762480000
tst 'Fri, 01 Jul 2000 10:20:30 +0100' 962410830