Here's the log:

ok 86 - template text 42 processed OK: [% TRY %]\n[% dir = "[\% FOREACH ...
MATCH FAILED
input: [[% TRY %]\n[% dir = "[\% FOREACH a = { 1 2 3 } %\]a: [\% a %\]\n[\% END %\]" %]\n[% dir | eval %]\n[% CATCH %]\nerror: [[% error.type %]] [[% error.info %]]\n[% END %]\n]
expect: [error: [file] [parse error - input text line 1: unexpected token (1)\n [% FOREACH a = { 1 2 3 } %]]]
output: [error: [Template::Constants::ERROR_FILE] [parse error - input text line 1: unexpected token (1)\n [% FOREACH a = { 1 2 3 } %]]]
not ok 87 - template text 42 did not match expected
ok 88 - template text 43 processed OK: nothing\n[% TRY;\n '$x = 10; $b...


Again, it looks like the test expects [file] in the output but [Template::Constants::ERROR_FILE] is actually produced.

Is there any way to change this behaviour so the tests run clean?

Thanks, Dave
--
Dave Howorth
MRC Centre for Protein Engineering
Hills Road, Cambridge, CB2 2QH
01223 252960


_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to