diff options
Diffstat (limited to 'www/p5-HTML-Template-JIT/files/patch-t::03loops.t')
-rw-r--r-- | www/p5-HTML-Template-JIT/files/patch-t::03loops.t | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/www/p5-HTML-Template-JIT/files/patch-t::03loops.t b/www/p5-HTML-Template-JIT/files/patch-t::03loops.t new file mode 100644 index 000000000000..83ebcd4f2ea1 --- /dev/null +++ b/www/p5-HTML-Template-JIT/files/patch-t::03loops.t @@ -0,0 +1,22 @@ +--- t/03loops.t Wed Jun 9 15:57:13 2004 ++++ t/03loops.t Wed Jun 9 16:00:15 2004 +@@ -1,4 +1,4 @@ +-use Test::More tests => 8; ++use Test::More tests => 9; + use HTML::Template::JIT; + + my $debug = 0; +@@ -69,3 +69,13 @@ + like($output, qr/Apples, Oranges, Brains, Toes, and Kiwi./); + like($output, qr/pingpongpingpongpingpong/); + ++$template = HTML::Template::JIT->new(filename => 'loop.tmpl', ++ path => ['t/templates'], ++ jit_path => 't/jit_path', ++ jit_debug => $debug, ++ ); ++$template->param(foo => "FOO"); ++$template->param(bar => [ bless({ val => 'foo' }, 'barfoo'), ++ bless({ val => 'bar' }, 'barbar') ]); ++$output = $template->output(); ++like($output, qr/bar: foo,bar,/); |