File: 10item.t

package info (click to toggle)
libpod-sax-perl 0.14-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 172 kB
  • sloc: perl: 545; makefile: 7
file content (107 lines) | stat: -rw-r--r-- 1,167 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
use Test;
BEGIN { plan tests => 4 }
use Pod::SAX;
use XML::SAX::Writer;

my $output = '';
my $p = Pod::SAX->new(
            Handler => XML::SAX::Writer->new(
                Output => \$output
                )
            );

ok($p);
my $str = join('', <DATA>);
ok($str, qr/=head1.*=cut/s, "Read DATA ok");
$p->parse_string($str);
ok($output);
print "$output\n";
ok($output, qr/<pod>.*<\/pod>/s, "Matches basic pod outline");

# TODO : add some real tests here (manually checked at the moment)

__DATA__

=head1 Item test

Some =item things to test

=head2 Bulleted Lists

=over 4

=item * bulleted list

=item * second bullet

=item *

Bullet on its own

=item *

And one more

=back

=head2 Numbered Lists

=over 4

=item 1. numbered list

=item 2. second number

=item 

=back

=head2 Ordinary lists

=over 4

=item No prefix list

=item More

=back

=head2 Nested Lists

=over 4

=item Here's a nested list. Top level

=over 4

=item Level 1

=over 4

=item Level 2

=back

=back

=item Back at the top level

=back

=head2 No list - just =over =back (indent)

=over 2

Something indented

=back

=head2 List without ending

=over 4

=item Foo

Blah Blah

=cut