>>>>> "Eirik" == Eirik Berg Hanssen <eirik-berg.hans...@allverden.no> writes:

Eirik> 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.

Eirik>   IIRC ...

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

Oh.  Doh.  Thanks.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<mer...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

Reply via email to