[tap-l] (no subject)
Ovid
curtis_ovid_poe at yahoo.com
Sat Jul 21 11:03:25 BST 2007
Working for my TAP::Parser -> Test::Harness 3.0 presentation for YAPC::EU in Vienna and I think there's a tiny mistake on this page:
http://podwiki.hexten.net/podwiki.pl?page=TAP
It reads:
Any output line that is not a version, a plan, a test line, a diagnostic
or a bail out is
incorrect. How a harness handles the incorrect line is
undefined.
I believe that should be something along the lines of:
Any output line that is not a version, a plan, a test line, a diagnostic
or a bail out is
considered an "unknown" line. A TAP parser is required to not consider an unknown
line as an error but may optionally choose to capture said line and hand it to the
test harness, which may have custom behavior attached. This is to allow for forward
compatability.
OK, that's awkward, but basically, the behavior is not undefined because currently we discard it but the parser is REQUIRED to not count an incorrect line as an error. Thus, the behavior is not undefined, but a harness may optionally choose to attach additional semantics to it.
Is this correct?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
More information about the tap-l
mailing list