diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-10 22:38:13 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-10 22:38:13 +0000 |
commit | 92e3d63aacb66085fea74c3f951f09e136337b97 (patch) | |
tree | 26db772e88a63590eae6677574c5616c93e979c7 /t/pod | |
parent | cd46e23b05b93423efcb49a21b866800469e7383 (diff) | |
download | perl-92e3d63aacb66085fea74c3f951f09e136337b97.tar.gz |
Update to Pod::Parser 1.17, from Brad Appleton.
p4raw-id: //depot/perl@6578
Diffstat (limited to 't/pod')
-rwxr-xr-x | t/pod/emptycmd.t | 6 | ||||
-rwxr-xr-x | t/pod/for.t | 6 | ||||
-rwxr-xr-x | t/pod/headings.t | 6 | ||||
-rwxr-xr-x | t/pod/include.t | 6 | ||||
-rwxr-xr-x | t/pod/included.t | 6 | ||||
-rwxr-xr-x | t/pod/lref.t | 6 | ||||
-rwxr-xr-x | t/pod/multiline_items.t | 6 | ||||
-rwxr-xr-x | t/pod/nested_items.t | 6 | ||||
-rwxr-xr-x | t/pod/nested_seqs.t | 6 | ||||
-rwxr-xr-x | t/pod/oneline_cmds.t | 6 | ||||
-rwxr-xr-x | t/pod/pod2usage.t | 6 | ||||
-rwxr-xr-x | t/pod/poderrs.t | 85 | ||||
-rw-r--r-- | t/pod/poderrs.xr | 81 | ||||
-rwxr-xr-x | t/pod/podselect.t | 6 | ||||
-rwxr-xr-x | t/pod/special_seqs.t | 6 |
15 files changed, 166 insertions, 78 deletions
diff --git a/t/pod/emptycmd.t b/t/pod/emptycmd.t index d348a9d278..59e395ea04 100755 --- a/t/pod/emptycmd.t +++ b/t/pod/emptycmd.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } diff --git a/t/pod/for.t b/t/pod/for.t index b8a6ec5c73..44af44f17d 100755 --- a/t/pod/for.t +++ b/t/pod/for.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } diff --git a/t/pod/headings.t b/t/pod/headings.t index fc7b4b265b..78608d0fd9 100755 --- a/t/pod/headings.t +++ b/t/pod/headings.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } diff --git a/t/pod/include.t b/t/pod/include.t index 6d0b7e34e5..4e73b78356 100755 --- a/t/pod/include.t +++ b/t/pod/include.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } diff --git a/t/pod/included.t b/t/pod/included.t index 0e31a090fc..4f171c454b 100755 --- a/t/pod/included.t +++ b/t/pod/included.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } diff --git a/t/pod/lref.t b/t/pod/lref.t index e367d6dd66..02e2c9e307 100755 --- a/t/pod/lref.t +++ b/t/pod/lref.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } diff --git a/t/pod/multiline_items.t b/t/pod/multiline_items.t index 37e8d53069..0fe410a4e6 100755 --- a/t/pod/multiline_items.t +++ b/t/pod/multiline_items.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } diff --git a/t/pod/nested_items.t b/t/pod/nested_items.t index 9c098018d1..c8e9b22427 100755 --- a/t/pod/nested_items.t +++ b/t/pod/nested_items.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } diff --git a/t/pod/nested_seqs.t b/t/pod/nested_seqs.t index 6a5405bf47..8559f1f25f 100755 --- a/t/pod/nested_seqs.t +++ b/t/pod/nested_seqs.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } diff --git a/t/pod/oneline_cmds.t b/t/pod/oneline_cmds.t index 3081ef4dc3..28bd1d09e5 100755 --- a/t/pod/oneline_cmds.t +++ b/t/pod/oneline_cmds.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } diff --git a/t/pod/pod2usage.t b/t/pod/pod2usage.t index bceeeefce8..cf2c31b83f 100755 --- a/t/pod/pod2usage.t +++ b/t/pod/pod2usage.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } diff --git a/t/pod/poderrs.t b/t/pod/poderrs.t index ec632c2538..8db7d4351c 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'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testpchk.pl"; import TestPodChecker; } @@ -59,7 +59,7 @@ The above blank line contains tabs and spaces only =over 4 -=item oops +=item aaps =head2 end without begin @@ -75,6 +75,20 @@ The above blank line contains tabs and spaces only =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<code I<italic C<code again!>>> @@ -84,6 +98,9 @@ C<code I<italic C<code again!>>> E<alea iacta est> E<C<auml>> E<abcI<bla>> +E<0x100> +E<07777> +E<300> =head2 Unresolved internal links @@ -96,12 +113,15 @@ L</OoPs> L<abc def> L<> +L< aha> +L<oho > L<"Warnings"> this one is ok +L</unescaped> ok too, this POD has an X of the same name =head2 Warnings L<passwd(5)> -L< some text|page/"section" > +L<some text with / in it|perlvar/$|> should give warnings as hell =over 4 @@ -109,17 +129,70 @@ L< some text|page/"section" > =back 200 +the 200 is evil + =begin html What? =end xml +X<unescaped>see these unescaped < and > in the text? + +=head2 Misc + +Z<ddd> 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 + +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 -see these unescaped < and > in the text? +=head2 some heading + +=head2 another one + +previous section is empty! =cut + diff --git a/t/pod/poderrs.xr b/t/pod/poderrs.xr index b8e5e86fd5..015f8984eb 100644 --- a/t/pod/poderrs.xr +++ b/t/pod/poderrs.xr @@ -1,33 +1,48 @@ -*** ERROR: Unknown command 'unknown1' at line 25 in file pod/poderrs.t -*** ERROR: Unknown interior-sequence 'Q' at line 29 in file pod/poderrs.t -*** ERROR: Unknown interior-sequence 'A' at line 30 in file pod/poderrs.t -*** ERROR: Unknown interior-sequence 'Y' at line 31 in file pod/poderrs.t -*** ERROR: Unknown interior-sequence 'V' at line 31 in file pod/poderrs.t -*** ERROR: unterminated B<...> at line 35 in file pod/poderrs.t -*** ERROR: unterminated I<...> at line 34 in file pod/poderrs.t -*** ERROR: unterminated C<...> at line 37 in file pod/poderrs.t -*** WARNING: line containing nothing but whitespace in paragraph at line 45 in file pod/poderrs.t -*** ERROR: =item without previous =over at line 52 in file pod/poderrs.t -*** ERROR: =back without previous =over at line 56 in file pod/poderrs.t -*** ERROR: =over on line 60 without closing =back (at head2) at line 64 in file pod/poderrs.t -*** ERROR: =end without =begin at line 66 in file pod/poderrs.t -*** ERROR: Nested =begin's (first at line 70:html) at line 72 in file pod/poderrs.t -*** ERROR: =end without =begin at line 76 in file pod/poderrs.t -*** ERROR: nested commands C<...C<...>...> at line 80 in file pod/poderrs.t -*** ERROR: garbled entity E<alea iacta est> at line 84 in file pod/poderrs.t -*** ERROR: garbled entity E<C<auml>> at line 85 in file pod/poderrs.t -*** ERROR: garbled entity E<abcI<bla>> at line 86 in file pod/poderrs.t -*** WARNING: collapsing newlines to blanks at line 96 in file pod/poderrs.t -*** ERROR: malformed link L<> : empty link at line 98 in file pod/poderrs.t -*** WARNING: ignoring leading whitespace in link at line 104 in file pod/poderrs.t -*** WARNING: ignoring trailing whitespace in link at line 104 in file pod/poderrs.t -*** ERROR: Spurious character(s) after =back at line 110 in file pod/poderrs.t -*** WARNING: No items in =over (at line 118) / =back list at line 120 in file pod/poderrs.t -*** WARNING: 2 unescaped <> in paragraph at line 122 in file pod/poderrs.t -*** ERROR: unresolved internal link 'begin or begin' at line 90 in file pod/poderrs.t -*** ERROR: unresolved internal link 'end with begin' at line 91 in file pod/poderrs.t -*** ERROR: unresolved internal link 'OoPs' at line 92 in file pod/poderrs.t -*** ERROR: unresolved internal link 'abc def' at line 96 in file pod/poderrs.t -*** ERROR: unresolved internal link 'passwd(5)' at line 103 in file pod/poderrs.t -*** WARNING: multiple occurence of link target 'oops' at line - in file pod/poderrs.t -pod/poderrs.t has 25 pod syntax errors. +*** ERROR: Unknown command 'unknown1' at line 25 in file t/pod/poderrs.t +*** ERROR: Unknown interior-sequence 'Q' at line 29 in file t/pod/poderrs.t +*** ERROR: Unknown interior-sequence 'A' at line 30 in file t/pod/poderrs.t +*** ERROR: Unknown interior-sequence 'Y' at line 31 in file t/pod/poderrs.t +*** ERROR: Unknown interior-sequence 'V' at line 31 in file t/pod/poderrs.t +*** ERROR: unterminated B<...> at line 35 in file t/pod/poderrs.t +*** ERROR: unterminated I<...> at line 34 in file t/pod/poderrs.t +*** ERROR: unterminated C<...> at line 37 in file t/pod/poderrs.t +*** WARNING: line containing nothing but whitespace in paragraph at line 45 in file t/pod/poderrs.t +*** ERROR: =item without previous =over at line 52 in file t/pod/poderrs.t +*** ERROR: =back without previous =over at line 56 in file t/pod/poderrs.t +*** ERROR: =over on line 60 without closing =back (at head2) at line 64 in file t/pod/poderrs.t +*** ERROR: =end without =begin at line 66 in file t/pod/poderrs.t +*** ERROR: Nested =begin's (first at line 70:html) at line 72 in file t/pod/poderrs.t +*** ERROR: =end without =begin at line 76 in file t/pod/poderrs.t +*** ERROR: No argument for =begin at line 82 in file t/pod/poderrs.t +*** ERROR: =for without formatter specification at line 88 in file t/pod/poderrs.t +*** ERROR: nested commands C<...C<...>...> at line 94 in file t/pod/poderrs.t +*** ERROR: garbled entity E<alea iacta est> at line 98 in file t/pod/poderrs.t +*** ERROR: garbled entity E<C<auml>> at line 99 in file t/pod/poderrs.t +*** ERROR: garbled entity E<abcI<bla>> at line 100 in file t/pod/poderrs.t +*** ERROR: Entity number out of range E<0x100> at line 101 in file t/pod/poderrs.t +*** ERROR: Entity number out of range E<07777> at line 102 in file t/pod/poderrs.t +*** ERROR: Entity number out of range E<300> at line 103 in file t/pod/poderrs.t +*** WARNING: collapsing newlines to blanks at line 113 in file t/pod/poderrs.t +*** ERROR: malformed link L<> : empty link at line 115 in file t/pod/poderrs.t +*** WARNING: ignoring leading whitespace in link at line 116 in file t/pod/poderrs.t +*** WARNING: ignoring trailing whitespace in link at line 117 in file t/pod/poderrs.t +*** WARNING: (section) in 'passwd(5)' deprecated at line 123 in file t/pod/poderrs.t +*** WARNING: node '$|' contains non-escaped | or / at line 124 in file t/pod/poderrs.t +*** WARNING: alternative text '$|' contains non-escaped | or / at line 124 in file t/pod/poderrs.t +*** ERROR: Spurious character(s) after =back at line 130 in file t/pod/poderrs.t +*** ERROR: Nonempty Z<> at line 144 in file t/pod/poderrs.t +*** ERROR: Empty X<> at line 146 in file t/pod/poderrs.t +*** WARNING: No numeric argument for =over at line 148 in file t/pod/poderrs.t +*** WARNING: preceding non-item paragraph(s) at line 152 in file t/pod/poderrs.t +*** WARNING: No argument for =item at line 154 in file t/pod/poderrs.t +*** WARNING: previous =item has no contents at line 156 in file t/pod/poderrs.t +*** WARNING: No items in =over (at line 164) / =back list at line 166 in file t/pod/poderrs.t +*** ERROR: Spurious text after =pod at line 172 in file t/pod/poderrs.t +*** ERROR: Spurious text after =cut at line 176 in file t/pod/poderrs.t +*** WARNING: empty section in previous paragraph at line 192 in file t/pod/poderrs.t +*** ERROR: unresolved internal link 'begin or begin' at line 107 in file t/pod/poderrs.t +*** ERROR: unresolved internal link 'end with begin' at line 108 in file t/pod/poderrs.t +*** ERROR: unresolved internal link 'OoPs' at line 109 in file t/pod/poderrs.t +*** ERROR: unresolved internal link 'abc def' at line 113 in file t/pod/poderrs.t +*** WARNING: multiple occurence of link target 'Misc' at line - in file t/pod/poderrs.t +t/pod/poderrs.t has 33 pod syntax errors. diff --git a/t/pod/podselect.t b/t/pod/podselect.t index 30eb30c9b0..0004548cb7 100755 --- a/t/pod/podselect.t +++ b/t/pod/podselect.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } diff --git a/t/pod/special_seqs.t b/t/pod/special_seqs.t index b8af57ee05..1f229c2761 100755 --- a/t/pod/special_seqs.t +++ b/t/pod/special_seqs.t @@ -1,7 +1,7 @@ -#!./perl BEGIN { - chdir 't' if -d 't'; - unshift @INC, './pod', '../lib'; + use File::Basename; + my $THISDIR = dirname $0; + unshift @INC, $THISDIR; require "testp2pt.pl"; import TestPodIncPlainText; } |