So I now have well over 2,000 tests for the parser, but there's a corner case 
that's killing me.  Test::Harness handles it fine, so I'm thinking that the TAP 
specification (and subsequent grammar) is wrong.

In the Perl core, we have t/base/rs.t and on line 129 of that file we have the 
following:

    foreach $test (11..14) {print "ok $test # skipped on non-VMS system\n"};

That unescaped hash mark is causing me lots of pain.  This is also the reason 
why my parser blows up on Regexp::Common:

  Regexp-Common-2.120 $ perl t/test_no_import.t 
  1..3
  ok 1
  ok 2
  ok 3 # $; eq "\034"
 
Because TAP forbids unescaped hash marks in descriptions and that's how my 
parser works, it falls down and goes boom.  Unless I hear differently, I'm 
going to have to adjust my parser to allow them.  Otherwise I can't even parse 
the Perl core tests, much less many different test modules on the CPAN.  This 
is because many people are putting their descriptions after hash marks, not 
before.

Cheers,
Ovid


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

Reply via email to