File: error_output.t

package info (click to toggle)
libhtml-template-pro-perl 0.9524-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,512 kB
  • sloc: ansic: 1,841; perl: 1,474; yacc: 404; pascal: 118; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w
use Test::More no_plan;
use HTML::Template::Pro;

my $src1 =<<"END;";
</TMPL_IF>
<tmpl_var EXPR="(a/(foo&&&">
<TMPL_IF NAME="foo>
<TMPL_FI NAME="foo>
name foo
END;

my $template1   = HTML::Template::Pro->new(scalarref => \$src1, debug=> -1);
$template1->param(foo => 1);
my $out=$template1->output();
#print $out;
ok(1); # not crashed

__END__