]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - t/meta.t
Creating my Page
[git.ikiwiki.info.git] / t / meta.t
index 429fb963e613609c2825c2f9c89cac95aacc7839..8602930bcfde2d3cf90bd7d603807288a2d0bc46 100755 (executable)
--- a/t/meta.t
+++ b/t/meta.t
@@ -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();