On Tue, May 25, 2004 at 09:16:51AM -0700, chromatic ([EMAIL PROTECTED]) wrote:
> On Tue, 2004-05-25 at 06:58, Francisco Olarte Sanz wrote:
> It's a reliable feature. If it's not documented, it should be.
It should also be stated so that folks who use Test::Builder know to
make their functions return T/F as a convention.
I've seen functions before that look like this:
sub foo_ok {
my $value = shift;
my $msg = shift;
my $ok = wango_dango_whatever( $value );
$Test->ok( $ok, $msg );
diag( "Blah blah" ) unless $ok;
}
Of coruse, the final line there should be a simple "return $ok".
xoa
--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance