[Templates] t/cgi.t fail

Nicholas Lee nj.lee@plumtree.co.nz
Thu, 10 Aug 2000 15:06:15 +1200


I've just tried to install Template-Toolkit (1.07) via CPAN.           
Unfortunately it fails on test 5 't/cgi.t'.                                 


Here is the output of the direct test run.

[root@cone:/root/.cpan/build/Template-Toolkit-1.07/t] perl ./cgi.t 
1..6
ok 1
ok 2
ok 3
ok 4
MATCH FAILED
 input: [[% USE cgi = CGI('id=abw&name=Andy+Wardley') -%]\n[% FOREACH x = cgi.checkbox_group(\n         name     => 'words'\n values   => [ 'eenie', 'meenie', 'minie', 'moe' ]\n defaults => [ 'eenie', 'meenie' ] )   -%]\n[% x %]\n[% END %]\nname: [% cgi.param('name') %]\n]
expect: [<INPUT TYPE="checkbox" NAME="words" VALUE="eenie" CHECKED>eenie\n<INPUT TYPE="checkbox" NAME="words" VALUE="meenie" CHECKED>meenie\n<INPUT TYPE="checkbox" NAME="words" VALUE="minie">minie\n<INPUT TYPE="checkbox" NAME="words" VALUE="moe">moe\n\nname: Andy Wardley]
output: [<input type="checkbox" name="words" value="eenie" checked="yes" />eenie\n<input type="checkbox" name="words" value="meenie" checked="yes" />meenie\n<input type="checkbox" name="words" value="minie" />minie\n<input type="checkbox" name="words" value="moe" />moe\n\nname: Andy Wardley]
not ok 5
ok 6


The difference seeming to be checked has '="yes"' in the output and the
case.

This is running on an Openbsd 2.7 system with DSO mod_perl 1.24, CGI 2.70
and perl 5.6.  



Any suggestions?



Nicholas