David Dick wrote:
G'day all,
I've got an issue with getting 'make test' to run successfully on the following platforms

[SNIP]
input: [[% INCLUDE warning -%]\nfile: [% file.chunk(-16).last %]\nline: [% line %]\nwarn: [% warn %]\n] expect: [Hello\nWorld\nfile: (eval 10)\nline: 10\nwarn: Argument "" isn't numeric in addition (+)] output: [Hello\nWorld\nfile: (eval 9)\nline: 10\nwarn: Argument "" isn't numeric in addition (+)]
FAILED 9:  - template text 3 did not match expected
not ok 9 - template text 3 did not match expected
ok 10 - template text 4 processed OK: [% TRY; \n     INCLUDE chomp; \n  ...
ok 11 - template text 4 matched expected

does anyone have any idea what could be causing this?

Hi David,

It's clear that the 'eval 10' - 'eval 9' difference is the problem in the test. 
I looked in CVS and it looks like Andy already has it fixed there for 2.15b.

http://tt2.org/viewcvs/Template2/t/fileline.t.diff?r1=1.5&r2=1.6

While the fix suggests FreeBSD only, I suspect this may be other platforms as 
well since you have reported the others.

So you may want to give the developer 2.15b release a whirl instead. Or you can 
implement the fix manually.

-- Josh

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to