5 2_fill_01_form.t - Test CGI::Ex::Fill's ability to fill hidden fields
10 use Test::More tests => 2;
12 use_ok('CGI::Ex::Fill');
14 my $hidden_form_in = '
15 <INPUT TYPE="TEXT" NAME="foo1" value="nada">
16 <input type="hidden" name="foo2"/>
19 my %fdat = (foo1 => 'bar1',
23 my $output = CGI::Ex::Fill::form_fill($hidden_form_in,
25 ok($output =~ m/^\s*<input( (type="TEXT"|name="foo1"|value="bar1")){3}>\s*<input( (type="hidden"|name="foo2"|value=""bar2"")){3}\s*\/>\s*$/i,
26 "Basic case insensitive match worked ($output)");