mer...@stonehenge.com (Randal L. Schwartz) writes:

>     plan 'no_plan';
>     
>     BEGIN { use_ok('File::Finder') }

> These lines passed when I wrote them a few years ago.
>
> Is this:
> (a) an error in test reporter
> (b) an error in my code because this once worked but is now deprecated
> (c) an error in my code because this never should have worked
>
> Please explain.

  IIRC ...

  Alternative (c) – the first test (the use_ok) is called before the
plan.  This used to be accepted, but was never correct.

  Hence: "You tried to run a test without a plan."


Eirik
-- 
Machines certainly can solve problems, store information, correlate,
and play games -- but not with pleasure.
                -- Leo Rosten

Reply via email to