5 1_validate_03_cgi.t - Test CGI::Ex::Validate's ability to interact with CGI.pm.
10 use Test::More tests => 3;
12 use_ok('CGI::Ex::Validate');
15 skip("CGI.pm not installed", 2) if ! eval { require CGI };
30 my $err_obj = CGI::Ex::Validate::validate($form,$val);
31 ok(! $err_obj, "Correctly didn't get an error object");
38 $err_obj = CGI::Ex::Validate::validate($form, $val);
39 ok($err_obj, "Correctly did get an error object");