Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Jemplate CPAN distribution.

Report information
The Basics
Id: 48564
Status: resolved
Priority: 0/
Queue: Jemplate

People
Owner: Nobody in particular
Requestors: kmx [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.24_2
Fixed in: (no value)



Subject: ver. 0.24_02 - failing test t/quoted.t
Hi, I have experienced the following failing test with Jemplate 0.24_02 (my environment: perl 5.8.9/win32) t/quoted.t ......... t/quoted.t ......... 1/2 # Failed test 'test for "quoted" strings' # at t/quoted.t line 6. # got: '//line 1 "test_template" # stash.set('foo', 'foo'); # //line 1 "test_template" # stash.set('bar', 'bar'); # output += '\n'; # //line 1 "test_template" # output += stash.get('foo') + '/' + stash.get('bar'); # output += '\n'; # ' # expected: '//line 1 "test_template" # stash.set('foo', 'foo'); # //line 1 "test_template" # stash.set('bar', 'bar'); # output += '\n'; # //line 0 "test_template" # output += stash.get('foo') + '/' + stash.get('bar'); # output += '\n'; # ' # Looks like you failed 1 test of 2. t/quoted.t ......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests -- kmx
Hi, I have analysed this issue into more details and found out that the behaviour of t/quoted.t heavily depends on the version of Template::Toolkit (it seems to be platform independent - I have tested it on Win32 and Linux with the same results) With Template-Toolkit-2.20 the output is: //line 1 "test_template" stash.set('foo', 'foo'); //line 1 "test_template" stash.set('bar', 'bar'); output += '\n'; //line 0 "test_template" output += stash.get('foo') + '/' + stash.get('bar'); output += '\n'; With Template-Toolkit-2.22: //line 1 "test_template" stash.set('foo', 'foo'); //line 1 "test_template" stash.set('bar', 'bar'); output += '\n'; //line 1 "test_template" output += stash.get('foo') + '/' + stash.get('bar'); output += '\n'; What I would like to propose is: 1) to patch t\quote.t like this ... stash.set('bar', 'bar'); output += '\n'; - //line 0 "test_template" + //line 1 "test_template" output += stash.get('foo') + '/' + stash.get('bar'); ... 2) to patch Makefile.pl like this - requires 'Template' => '2.19'; + requires 'Template' => '2.22'; Could you please consider the proposed patch? Thanks for any feedback. -- kmx
Fixed in Jemplate-0.24_4
Looks to be fixed, thanks for the feedback.