This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
replace misleading docs with a BUGS section
[perl5.git] / t / pod / poderrs.t
CommitLineData
27f805f4 1#!./perl
360aca43 2BEGIN {
27f805f4
GS
3 chdir 't' if -d 't';
4 unshift @INC, './pod', '../lib';
360aca43
GS
5 require "testpchk.pl";
6 import TestPodChecker;
7}
8
9my %options = map { $_ => 1 } @ARGV; ## convert cmdline to options-hash
10my $passed = testpodchecker \%options, $0;
11exit( ($passed == 1) ? 0 : -1 ) unless $ENV{HARNESS_ACTIVE};
12
13
14__END__
15
16
17=head1 NAME
18
19poderrors.t - test Pod::Checker on some pod syntax errors
20
21=unknown1 this is an unknown command with two N<unknownA>
22and D<unknownB> interior sequences.
23
24This is some paragraph text with some unknown interior sequences,
25such as Q<unknown2>,
26A<unknown3>,
27and Y<unknown4 V<unknown5>>.
28
29Now try some unterminated sequences like
30I<hello mudda!
31B<hello fadda!
32
33Here I am at C<camp granada!
34
35Camps is very,
36entertaining.
37And they say we'll have some fun if it stops raining!
38
e3237417
GS
39=head1 Additional tests
40
41=head2 item without over
42
43=item oops
44
45=head2 back without over
46
47=back
48
49=head2 over without back
50
51=over 4
52
53=item oops
54
55=head2 end without begin
56
57=end
58
59=head2 begin and begin
60
61=begin html
62
63=begin text
64
65=end
66
67=end
68
69=head2 Nested sequences of the same type
70
71C<code I<italic C<code again!>>>
72
73=head2 Garbled entities
74
75E<alea iacta est>
76E<C<auml>>
77E<abcI<bla>>
78
79=head2 Unresolved internal links
80
81L</"begin or begin">
82L<"end with begin">
83L</OoPs>
84
85=head2 Garbled (almost) links
86
87L<s s / s s / ss>
88L<".".":">
89L<"h"/"hh">
90L<a|b|c>
91
92=head2 Warnings
93
94L<passwd(5)>
95L< some text|page/"section" >
96
97=over 4
98
99=item bla
100
101=back 200
102
103=begin html
104
105What?
106
107=end xml
108
109=over 4
110
111=back
112
113see these unescaped < and > in the text?
114
360aca43 115=cut
e3237417 116