develooper Front page | perl.qa | Postings from January 2007

TAPx::Parser - todo_failed -> todo_passed

From:
Ovid
Date:
January 8, 2007 11:24
Subject:
TAPx::Parser - todo_failed -> todo_passed
Message ID:
100066.62970.qm@web60818.mail.yahoo.com
In TAPx::Parser, if a TODO test unexpectedly succeeds, you can find out
by calling:

  if ( $result->todo_failed ) { ... }

That keeps screwing my head up.  I'm deprecating it and it will now
issue a warning.  Call:

  if ( $result->todo_passed ) { ... }

Also, I forgot to add a '-I' switch to 'runtests'.  I've now included
that.

I also forgot a '-h' switch.  I propose using Pod::Usage, but that was
only core as of 5.6.  As I've worked very hard to avoid *all* non-core
modules (I use a couple which were only core in 5.00307), but I think
Pod::Usage is ubiquitous enough that it's OK to include this as a
dependency.  Comments welcome.

Cheers,
Ovid

--

Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About