[tap-l] multi-file TAP

Ovid publiustemp-tapx at yahoo.com
Sun Apr 8 10:37:07 BST 2007


--- Andy Armstrong <andy at hexten.net> wrote:
> >> plan 4
> >> begin "Spigot extraction"
> >>    plan 3
> >>    ok 1 Spigot::Extractor loaded
> >>    ok 2 Spigot visble
> >>    not ok 3 Spigot free
> >> end
> >> begin "Documentation"
> >>    plan 1
> >>    ok 1 Documentation makes sense
> >> end
> >> ok 3 All tests completed
> >
> > Doesn't that last line invalidate the 'plan 4' bit?
> 
> It should be plan 3 - two begin/end pairs and a naked test.

Also, we should not overload the meaning of 'plan'.  Keep the parsers
simple by having 'plan' mean one thing and one thing only.

Cheers,
Ovid

--

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


More information about the tap-l mailing list