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