Subject: | t/gd.t Test 7 fails in version 2.14 |
Below is the test output along with relevent Perl information
steve@kirk Template-Toolkit-2.14 # prove -b -v t/gd.t
t/gd....1..11
ok 1 - running test_expect()
ok 2 - template processor is engaged
ok 3 - input read and split into 4 tests
ok 4 - template text 1 processed OK: [% FILTER replace('.');\n
#\n ...
ok 5 - template text 1 matched expected
ok 6 - template text 2 processed OK: [% FILTER replace('.');\n
#\n ...
MATCH FAILED
input: [[% FILTER replace('.');\n #\n # This is test3 from GD-
1.xx/t/GD.t
\n #\n USE im = GD.Image(100,50);\n black = im.colorAllocate
(0, 0, 0);\
n white = im.colorAllocate(255, 255, 255);\n red =
im.colorAllocate(255,
0, 0);\n blue = im.colorAllocate(0,0,255);\n im.arc(50, 25, 98,
48, 0, 3
60, white);\n im.fill(50, 21, red);\nEND; -%][% im.png | hex -%]\n]
expect:
[89504e470d0a1a0a0000000d4948445200000064000000320203000000d75b962d0000\
n000c504c5445000000ffffffff00000000ff011d334a000000bc49444154789cad94c1
\n0d83300
c451309ba01cc93117a203d3002d3f4403680037fca8a448526f1b710ea3fe6
\nc9f9b163db984b6
ae4e3ce4755e7d64f88f2cf82787c151c0105eaf0ab708276ca0886
\n83bc7280d5919033a80c398
26c1502a4a4fa1a608d6414c8e6c865e9ba560298894d32
\n926c9291680338636580b742e4a7ed8
f7b10b2dc2272a27baafff5e1f9dca90eafb5f2
\n3ffc4f791ff0dee1fda6f428ef6b3e0bcafcf09
953e694cfb6b20f941da2ec1dbeaba2
\nb2fdf60111b64d2854ccf25e0000000049454e44ae42608
2]
output:
[89504e470d0a1a0a0000000d4948445200000064000000320203000000d75b962d0000\
n000c504c5445000000ffffffff00000000ff011d334a000000bc49444154388dad94c1
\n0d83300
c451309ba01cc93117a203d3002d3f4403680037fca8a448526f1b710ea3fe6
\nc9f9b163db984b6
ae4e3ce4755e7d64f88f2cf82787c151c0105eaf0ab708276ca0886
\n83bc7280d5919033a80c398
26c1502a4a4fa1a608d6414c8e6c865e9ba560298894d32
\n926c9291680338636580b742e4a7ed8
f7b10b2dc2272a27baafff5e1f9dca90eafb5f2
\n3ffc4f791ff0dee1fda6f428ef6b3e0bcafcf09
953e694cfb6b20f941da2ec1dbeaba2
\nb2fdf60111b64d28a110a5c20000000049454e44ae42608
2]
FAILED 7: - template text 2 did not match expected
not ok 7 - template text 2 did not match expected
ok 8 - template text 3 processed OK: [% FILTER replace('.');\n
#\n ...
ok 9 - template text 3 matched expected
ok 10 - template text 4 processed OK: [% FILTER replace('.');\n
#\n ...
ok 11 - template text 4 matched expected
FAILED test 7
Failed 1/11 tests, 90.91% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------------------
-------
t/gd.t 11 1 9.09% 7
Failed 1/1 test scripts, 0.00% okay. 1/11 subtests failed, 90.91% okay.
steve@kirk Template-Toolkit-2.14 # perl -v
This is perl, v5.8.5 built for i686-linux
Copyright 1987-2004, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to
the
Internet, point your browser at http://www.perl.com/, the Perl Home
Page.