3 use Pod::Html qw( anchorify );
4 use Test::More tests => 1;
12 my (@poddata, $i, $j);
13 for ($i = 0, $j = -1; $i <= $#filedata; $i++) {
14 $j++ if ($filedata[$i] =~ /^\s*=head[1-6]/);
16 $poddata[$j] = "" unless defined $poddata[$j];
17 $poddata[$j] .= "\n$filedata[$i]" if $j >= 0;
22 foreach $i (0..$#poddata) {
23 $heads{anchorify($1)} = 1 if $poddata[$i] =~ /=head[1-6]\s+(.*)/;
25 my %expected = map { $_ => 1 } qw(
34 has_extra_internalwordspace
42 "Got expected POD heads"
48 anchorify - Test C<Pod::Html::anchorify()>
66 =head4 Has A Wordspace
70 =head4 HasTrailingWordspace
74 =head4 HasLeadingWordspace
78 =head4 Has Extra InternalWordspace
86 =head4 Has?QuestionMark
90 =head4 Has-Hyphen And Space