File: list.t

package info (click to toggle)
libpod-pom-perl 2.01-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 800 kB
  • sloc: perl: 2,756; makefile: 7
file content (49 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (7)
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
#!/usr/bin/perl -w                                         # -*- perl -*-

use strict;
use lib qw( ./lib ../lib );
use Pod::POM::Test;
#$Pod::POM::Node::DEBUG = 1;
my $DEBUG = 1;

ntests(2);

my $text;
{   local $/ = undef;
    $text = <DATA>;
}

my $parser = Pod::POM->new();
my $pom = $parser->parse_text($text);
assert( defined $pom );

my $out = "$pom";

$out =~ s/\s+$//;

match( $out, $text );

__DATA__
=over 4

=item Foo

This is Foo

=item Bar

This is Bar

=over 4

=item Bar/Baz

This is Bar/Baz

=back

=item Baz

This is Baz

=back