diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-05 22:12:31 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-05 22:12:31 -0400 |
commit | 57405061f4176bfa3fdfa686101a726a439d67f9 (patch) | |
tree | f42b46a8855475c5624cf2e548d00c47c9f580d2 /t | |
parent | fa2918f13f03a3d8dfd6f987a518695d7763fb01 (diff) | |
download | ikiwiki-57405061f4176bfa3fdfa686101a726a439d67f9.tar ikiwiki-57405061f4176bfa3fdfa686101a726a439d67f9.tar.gz |
add test
Diffstat (limited to 't')
-rwxr-xr-x | t/template_syntax.t | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/template_syntax.t b/t/template_syntax.t new file mode 100755 index 000000000..1e156eed8 --- /dev/null +++ b/t/template_syntax.t @@ -0,0 +1,15 @@ +#!/usr/bin/perl +use warnings; +use strict; +use Test::More; + +my @templates=glob("templates/*.tmpl"), glob("doc/templates/*.mdwn"); +plan(tests => 2*@templates); + +use HTML::Template; + +foreach my $template (@templates) { + my $obj=eval {HTML::Template->new(filename => $template)}; + ok(! $@, $template." $@"); + ok($obj, $template); +} |