Ricardo SIGNES wrote: > * Ovid <publiustemp-perl...@yahoo.com> [2009-06-30T10:21:24] >> The latest developer release of Test::More allows subtests. Subtests are >> great in that they solve a lot of problems in advanced Perl testing, but they >> have required a change in Test::Builder. Previously you could do stuff like >> this: > > 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'); > }
Using Test::Builder::Module and the builder method will do a better job of future-proofing you if/when I decide to take advantage of it. -- "I went to college, which is a lot like being in the Army, except when stupid people yell at me for stupid things, I can hit them." -- Jonathan Schwarz