Patrick R. Michaud wrote:
> On Fri, Oct 03, 2008 at 10:02:56AM +0200, [EMAIL PROTECTED] wrote:
>> +#?rakudo skip ',='
>> +#?DOES 2
>> +{
>> +    my @a = 1, 2;
>> +    is  (@a ,= 3, 4).join('|'), '1|2|3|4', ',= on lists works the same as 
>> push (return value)'
>> +    is  @a.join('|'), '1|2|3|4', ',= on lists works the same as push 
>> (effect on array)'
>> +
>> +}
> 
> In general the #?DOES line is needed only if there's a loop or a
> test somehow is executed more times than it appears in the code.

... or if the test file exceeds fudge's counting capabilities, and
produces randomly looking counts of skips or TODOs. Sadly assign.t is
such a case, where most of the #?DOES directives shouldn't be necessary,
and still you get a "bad plan" if you leave them out.

> If the #?DOES line isn't needed, we probably don't want to add it
> (as it then becomes an additional item to be maintained as more 
> tests are added).

Agreed.

Moritz

-- 
Moritz Lenz
http://perlgeek.de/ |  http://perl-6.de/ | http://sudokugarden.de/

Reply via email to