Perl 5.6.1 FreeBSD 4.6. make test reported these two errors:
t/datafile.......ok
t/date...........ok 18/33FAILED 19: - template text 8 did not match expected
t/date...........ok 20/33FAILED 21: - template text 9 did not match expected
t/date...........FAILED tests 19, 21
Failed 2/33 tests, 93.94% okay
t/dbi............skipped
I can't make heads nor tails of the date.t file to see what the
expected output should have been...
running the date test manually and passing 1 as the first arg to
test_harness, I get this:
ok 18 - template text 8 processed OK: [% USE english = date(format => ...
MATCH FAILED
input: [[% USE english = date(format => '%A', locale => 'en_GB') %]\n[% USE french =
date(format => '%A', locale => 'fr_FR') %]\nIn English, today's day is: [%
english.format +%]\nIn French, today's day is: [% french.format +%]\n]
expect: [In English, today's day is: Thursday\nIn French, today's day is: Thursday]
output: [In English, today's day is: Thursday\nIn French, today's day is: Jeudi]
FAILED 19: - template text 8 did not match expected
not ok 19 - template text 8 did not match expected
ok 20 - template text 9 processed OK: [% USE english = date(format => ...
MATCH FAILED
input: [[% USE english = date(format => '%A') %]\n[% USE french = date() %]\nIn
English, today's day is: \n[%- english.format(locale => 'en_GB') +%]\nIn French,
today's day is: \n[%- french.format(format => '%A', locale => 'fr_FR') +%]\n]
expect: [In English, today's day is: Thursday\nIn French, today's day is: Thursday]
output: [In English, today's day is: Thursday\nIn French, today's day is: Jeudi]
FAILED 21: - template text 9 did not match expected
not ok 21 - template text 9 did not match expected
ok 22 - template text 10 processed OK: [% USE date %]\n[% date.format('4..
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates