----- Original Message ----

> From: Ricardo SIGNES <perl...@rjbs.manxome.org>
>
> I updated my Test:: libraries to Test::Builder->new in their test routines,
> instead, as that's what I thought the original wisdom was.  Is that still
> okay?  (I did not add subtest-specific tests.)
> 
> That is, I turned:
> 
>   my $TEST = Test::Builder->new;
>   sub is_baloney { $TEST->ok('delicious') }
> 
> into:
> 
>   sub is_baloney {
>     my $TEST = Test::Builder->new;
>     $TEST->ok('delicious');
>   }

Currently this should be fine as all the builder() method does is call 
Test::Builder->new (and that's what I did in Test::JSON, to be honest).  I 
can't say whether or not this behavior will change in the future.  I just used 
the information passed to me by Schwern and by the Test::Builder::Module 
documentation.

 
Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Reply via email to