File: textview.t

package info (click to toggle)
libpod-pom-perl 0.02-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 192 kB
  • ctags: 117
  • sloc: perl: 1,277; makefile: 50
file content (24 lines) | stat: -rw-r--r-- 472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl -w                                         # -*- perl -*-

use strict;
use lib qw( ./lib ../lib );
use Pod::POM;
use Pod::POM::View::Text;
use Pod::POM::Test;

ntests(2);

my $file   = -d 't' ? 't/test.pod' : 'test.pod';
my $parser = Pod::POM->new();
my $pom    = $parser->parse_file($file)
    || die $parser->error();

assert( $pom );

$Pod::POM::DEFAULT_VIEW = 'Pod::POM::View::Text';

#print $pom;

# yet another crap test
match( length $pom, 1729 );