Adrian Howard <[EMAIL PROTECTED]> writes:
> Hi all,
>
> There's been a new version of Test::Class coming 'real soon' for a few
> months now :-)
[...]
> I'm considering two changes.
> a) Test methods default to an arbitrary number of tests.
> b) Use undef rather than 'no_plan'
>
> This gives us:
>
> sub one_test : Test(1) { ok(1==1) };
> sub two_tests : Test(2) { ok(1==1); ok(2==2) };
> sub n_tests : Test { ok(1==1) while rand(100) > 5
>};
> sub n_more_tests: Test(undef) { ok(1==1) while rand(100) > 5 };
>
> and
>
> die "undetermined # tests" unless $Tests->num_tests;
As an enthusiastic user of Test::Class I'd be all for these
changes. It seems more intuitive somehow.
--
Piers
"It is a truth universally acknowledged that a language in
possession of a rich syntax must be in need of a rewrite."
-- Jane Austen?