----- Original Message ---- From: Jonathan Rockway <[EMAIL PROTECTED]> To: Perl QA List <perl-qa@perl.org> Sent: Saturday, July 15, 2006 9:33:42 PM Subject: Re: Fw: Fixing SKIP:
> Worse, it's inconsistent with the rest of the API: > > ok $foo == $bar, $REASON; > is $foo, $bar, $REASON; > is_deeply $foo, $bar, $REASON; > > And then this: > > skip $REASON, $num; > > Sadly, it would be hard to change that since so many people use the > "wrong" syntax. > > Re-reading the man page, it looks like isa_ok and can_ok can't even > accept a test description? can_ok cannot accept a description because it accepts a list. isa_ok can *sort* of accept a description which is why I often do this: isa_ok $object, 'Foo::Bar', '... and the object'; And the output reads: ok 7 - ... and the object isa Foo::Bar It's a kludge, but I like my test output to read sensibly. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/ Regards, Jonathan Rockway