X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/4729ff0812c1f3d06d98524e2fec232d3bf90513..6a026338bbb728f7fc3dda16ba0fe9c9b4255514:/t/meta.t?ds=inline
diff --git a/t/meta.t b/t/meta.t
index 3b26ee7d2..8602930bc 100755
--- a/t/meta.t
+++ b/t/meta.t
@@ -65,12 +65,6 @@ write_build_read_compare(
qr{
},
);
-write_build_read_compare(
- 'enclosure',
- q{[[!meta enclosure="ikiwiki/login-selector/wordpress.png"]]},
- qr{},
-);
-
write_build_read_compare(
'author',
q{[[!meta author="Noodly J. Appendage"]]},
@@ -91,14 +85,14 @@ write_build_read_compare(
write_build_read_compare(
'date',
- q{[[!meta date="12345"]]},
- qr{},
+ q{[[!meta date="2000-01-23"]]},
+ qr{},
);
write_build_read_compare(
'updated',
- q{[[!meta updated="12345"]]},
- qr{},
+ q{[[!meta updated="2018-03-21"]]},
+ qr{},
);
#write_build_read_compare(
@@ -167,4 +161,16 @@ write_build_read_compare(
qr{},
);
+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();