summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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