]> Dogcows Code - chaz/p5-CGI-Ex/blobdiff - t/7_template_02_view.t
CGI::Ex 2.12
[chaz/p5-CGI-Ex] / t / 7_template_02_view.t
index dee858854a4e2457af36032e1150670637e46267..704bad69b7c1df34ed4587c370d8d92c356a5c91 100644 (file)
@@ -215,7 +215,7 @@ process_ok("[% USE view -%]
    CATCH view ;
      \"[\$error.type] \$error.info\" ;
    END
-%]" => "[view] file error - Template_View: not found", $vars);
+%]" => qr{^\Q[view] file error - Template_View: not found\E}, $vars);
 
 process_ok("[% USE view -%]
 [% view.print( foo ) %]" => "{ e => 2.718, pi => 3.14 }", $vars);
@@ -418,9 +418,9 @@ Goodbye World!
 [% END %]
 [% END -%]
 [% TRY; INCLUDE foo; CATCH; error; END %]
-[% foo.include_hello %]" => "file error - foo: not found
+[% foo.include_hello %]" => qr{^\Qfile error - foo: not found
 Hello World!
-", $vars);
+\E}, $vars);
 
 process_ok("[% title = \"Previous Title\" -%]
 [% VIEW foo 
This page took 0.01948 seconds and 4 git commands to generate.