]> sipb.mit.edu Git - ikiwiki.git/commitdiff
template_syntax.t: include doc/templates/*.mdwn in test
authorSimon McVittie <smcv@debian.org>
Fri, 21 Feb 2014 18:38:10 +0000 (18:38 +0000)
committerSimon McVittie <smcv@debian.org>
Fri, 21 Feb 2014 18:38:10 +0000 (18:38 +0000)
Previously, this test assigned the first glob to @templates, and
evaluated the second for its (practically nonexistent) side-effects.

t/template_syntax.t

index 1e156eed897890f1e856eb25606ba8057f169975..e3d1feca9ef3d3791ba7e93cf6bad2faf9abecc7 100755 (executable)
@@ -3,7 +3,7 @@ use warnings;
 use strict;
 use Test::More;
 
-my @templates=glob("templates/*.tmpl"), glob("doc/templates/*.mdwn");
+my @templates=(glob("templates/*.tmpl"), glob("doc/templates/*.mdwn"));
 plan(tests => 2*@templates);
 
 use HTML::Template;