diff options
Diffstat (limited to 'tests/parse.sh')
-rwxr-xr-x | tests/parse.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/parse.sh b/tests/parse.sh new file mode 100755 index 0000000..1de2320 --- /dev/null +++ b/tests/parse.sh @@ -0,0 +1,32 @@ +# Tests @'s date/time parsing +# +# Copyright (C) 2022 P. J. McDermott +# +# This file is part of @ +# +# @ is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# @ is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with @. If not, see <http://www.gnu.org/licenses/>. + +set -eu + +. "${TOP_SRCDIR}/tests/aux/tap-functions.sh" + +plan_ later + +if [ x"$(TZ=UTC0 "${TOP_BUILDDIR}/@" -d '19700101T000000')" = x'0' ]; then + ok_ -- '19700101T000000' +else + not_ok_ -- '19700101T000000' +fi + +plan_ now |