diff options
author | Simon McVittie <smcv@debian.org> | 2018-03-21 09:02:35 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2018-03-21 09:33:04 +0000 |
commit | 55cf1f9d9d223be56f43d5f6d94dfe67dc3bf072 (patch) | |
tree | 7fd1342dd69a98266102251bbe82610c8ac2e26a /t | |
parent | 10dc1fa7b2a88be59fb04a0041636aaf325f6307 (diff) | |
download | ikiwiki-55cf1f9d9d223be56f43d5f6d94dfe67dc3bf072.tar ikiwiki-55cf1f9d9d223be56f43d5f6d94dfe67dc3bf072.tar.gz |
meta test: Assert that malformed dates are rejected
Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 't')
-rwxr-xr-x | t/meta.t | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -161,4 +161,16 @@ write_build_read_compare( qr{<meta name="twitter:card" content="player" />}, ); +write_build_read_compare( + 'malformed_ISO-8601', + '[[!meta date="2018-02-281T12:00:00-0500"]]', + qr{Error: cannot parse date/time: 2018-02-281T12:00:00-0500}, +); + +write_build_read_compare( + 'nonsense_month', + '[[!meta date="2018-14-22T14:22:45-0500"]]', + qr{Error: cannot parse date/time: 2018-14-22T14:22:45-0500}, +); + done_testing(); |