----- Forwarded Message ----
From: Ovid <[EMAIL PROTECTED]>

> I have returned to working on the tap parser and stumbled across this 
> irritation:
>
>  #!/usr/bin/perl
>
 > use Test::More tests => 1;
 > SKIP: {
 >    skip "I'm lazy and don't wanna run no tests", 1 if 1;
 
Well, naturally I had to get the example wrong because it it *reads* wrong even 
if it's right.  It should have read:
 
     skip 1, "I'm lazy and don't wanna run no tests" if 1;
 
 That's incorrect, even though saying "skip X tests" reads naturally to me.  
Since "skip this many for tis reason" is how I mentally think of SKIP: blocks, 
I keep writing them like that, even though it's wrong.  As mentioned, it fails 
silently.
 
 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/





Reply via email to