On Thu, 15 Aug 2002, Vivek Khera wrote:
> 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
>
> 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]
> 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]
The 'expected' French is actually English in your quote, while the output
_is_ French ... maybe that's all it is, a little typo ... ?
- nick
~~~~~~~~~~~~~~~~~~~~
Nick Tonkin {|8^)>
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates