X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fpod%2Fpoderrs.t;h=1b92ede3bb00a385453348a9aa82c00628d4d420;hb=7717d7fd47c816dc7a9ba8caed2e475728fa368f;hp=e27130ce399630c25a33b90df143d812bfa9a9c2;hpb=e2c3adefd8c31a020997b83179ab5ab417e7e4ac;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/pod/poderrs.t b/t/pod/poderrs.t index e27130c..1b92ede 100755 --- a/t/pod/poderrs.t +++ b/t/pod/poderrs.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + unshift @INC, '../lib'; + unshift @INC, './pod'; require "testpchk.pl"; import TestPodChecker; } @@ -10,6 +10,10 @@ my %options = map { $_ => 1 } @ARGV; ## convert cmdline to options-hash my $passed = testpodchecker \%options, $0; exit( ($passed == 1) ? 0 : -1 ) unless $ENV{HARNESS_ACTIVE}; +### Deliberately throw in some blank but non-empty lines + +### The above line should contain spaces + __END__ @@ -36,6 +40,11 @@ Camps is very, entertaining. And they say we'll have some fun if it stops raining! +Okay, now use a non-empty blank line to terminate a paragraph and make +sure we get a warning. + +The above blank line contains tabs and spaces only + =head1 Additional tests =head2 item without over @@ -50,7 +59,7 @@ And they say we'll have some fun if it stops raining! =over 4 -=item oops +=item aaps =head2 end without begin @@ -66,6 +75,20 @@ And they say we'll have some fun if it stops raining! =end +second one results in end w/o begin + +=head2 begin w/o formatter + +=begin + +=end + +=head2 for w/o formatter + +=for + +something... + =head2 Nested sequences of the same type C>> @@ -75,6 +98,9 @@ C>> E E> E> +E<0x100> +E<07777> +E<300> =head2 Unresolved internal links @@ -87,12 +113,15 @@ L L L<> +L< aha> +L L<"Warnings"> this one is ok +L ok too, this POD has an X of the same name =head2 Warnings L -L< some text|page/"section" > +L should give warnings as hell =over 4 @@ -100,17 +129,70 @@ L< some text|page/"section" > =back 200 +the 200 is evil + =begin html What? =end xml +Xsee these unescaped < and > in the text? + +=head2 Misc + +Z should be empty + +X<> should not be empty + +=over four + +This paragrapgh is misplaced - it ought to be an item. + +=item four should be numeric! + +=item + +=item blah + +=item previous is all empty!!! + +=back + +All empty over/back: + =over 4 =back -see these unescaped < and > in the text? +item w/o name =cut +=pod bla + +bla is evil + +=cut blub + +blub is evil + +=head2 reoccurence + +=over 4 + +=item Misc + +we already have a head Misc + +=back + +=head2 some heading + +=head2 another one + +previous section is empty! + +=cut + +