ports/www/p5-HTML-Template-JIT/files/patch-t::10escape.t
Mathieu Arnold 0dcbb3207c Add some patches :
+ Fix 8bit symbols escaping.
+ Allow blessed hashrefs in loops.
+ Fix a portlint warning and make it not clutter perllocal.pod

PR:		70656
Submitted by:	Alex Kapranoff <kappa@rambler-co.ru>
2004-08-19 16:20:11 +00:00

22 lines
763 B
Perl

--- t/10escape.t Tue May 18 18:39:12 2004
+++ t/10escape.t Tue May 18 18:42:03 2004
@@ -1,4 +1,4 @@
-use Test::More tests => 3;
+use Test::More tests => 4;
use HTML::Template::JIT;
my $debug = 0;
@@ -35,3 +35,13 @@
$output = $template->output;
like($output, qr/Some URL escaped stuff:/);
+# test 8bit char in urlescaped var
+$template = HTML::Template::JIT->new(
+ filename => 'urlescape.tmpl',
+ path => ['t/templates'],
+ jit_path => 't/jit_path',
+ jit_debug => $debug,
+ );
+$template->param(STUFF => "\xf4"); #"
+$output = $template->output;
+like($output, qr/%F4/); #"