On Tue, Dec 07, 2004 at 12:48:01PM +0000, Tim Bunce ([EMAIL PROTECTED]) wrote:
> I ask because several times I've been puzzled by a test failure
> where the message printed is ambiguous. Compare these two:
> 
>       not ok 42 - is red
> 
>       not ok 42 - should be red
I always write tests and assertions the same way: What it is you're
checking for, and/or why.

  is( $nstooges, 3, "Correct stooge count" );

  unlike( $stooge_list, qr/Shemp/, "We're not revisionist" );

The why is often more important than anything:

  is( scalar @states, 51, "51 states includes dummy XX state" );

xoxo,
Andy

-- 
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Reply via email to