# -*- Mode: Perl; -*-
-use strict;
+=head1 NAME
-$^W = 1;
+2_fill_19_complex.t - Test CGI::Ex::Fill's regex against difficult tags (with embeded html)
-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 $string = qq{
<input attr="<br value='waw'>
my %fdat = (foo1 => 'bar1');
-my $cgix = new CGI::Ex;
-$cgix->fill(text => \$string,
- form => \%fdat,
- );
+CGI::Ex::Fill::form_fill(\$string,
+ \%fdat,
+ );
-if ($string =~ m/ value="bar1"/) {
- print "ok 2\n";
-} else {
- print "not ok 2\n";
-}
+ok($string =~ m/ value="bar1"/,
+ "Should match ($string)");