X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-CGI-Ex;a=blobdiff_plain;f=t%2F2_fill_02_hidden.t;h=5d50a5479873054bee4544e462b17cf9977d9398;hp=49c6c759927d2b34d32a79a20c0e37fce64aa4ad;hb=4eee158dce82376f2f37de29d91c53f60a24aebe;hpb=85070b46d0a93ddbeef07341421adb8389a55418
diff --git a/t/2_fill_02_hidden.t b/t/2_fill_02_hidden.t
index 49c6c75..5d50a54 100644
--- a/t/2_fill_02_hidden.t
+++ b/t/2_fill_02_hidden.t
@@ -1,27 +1,26 @@
# -*- Mode: Perl; -*-
-use strict;
+=head1 NAME
-$^W = 1;
+2_fill_02_hidden.t - Test CGI::Ex::Fill's ability to fill hidden fields
-print "1..2\n";
+=cut
-use CGI::Ex;
+use strict;
+use Test::More tests => 2;
-print "ok 1\n";
+use_ok('CGI::Ex::Fill');
my $hidden_form_in = qq{
};
my %fdat = (foo1a => 'bar1a',
- foo2 => ['bar2','bar3']);
-
-my $fif = new CGI::Ex;
-my $output = $fif->fill(scalarref => \$hidden_form_in,
- fdat => \%fdat);
-if ($output =~ m/^\s*$/){
- print "ok 2\n";
-} else {
- print "Got unexpected out for hidden form:\n$output\n";
- print "not ok 2\n";
-}
+ foo2 => ['bar2','bar3'],
+ );
+
+
+my $output = CGI::Ex::Fill::form_fill($hidden_form_in,
+ \%fdat);
+ok($output =~ m/^\s*$/,
+ "Hidden should've matched ($output)");
+