#!/usr/bin/perl -w use strict; use lib qw( ./lib ../lib ); use Pod::POM; use Pod::POM::View::SPIP; use Pod::POM::Test; ntests(7); my $parser = Pod::POM->new(); my $pom = $parser->parse_file(\*DATA); $Pod::POM::DEFAULT_VIEW = 'Pod::POM::View::SPIP'; assert($pom); my $text = $pom->head1->[0]->text; match( $text->[0], "This is {{bold}} text. Just {{bold}}.\n\n"); match( $text->[1], "This is {italic} text. Just {italic}.\n\n"); match( $text->[2], "This is {{ {italic bold} }} text. Just {{ {italic bold} }}.\n\n"); match( $text->[3], "This is { {{bold italic}} } text. Just { {{bold italic}} }.\n\n"); match( $text->[4], "This is inline code text. Just inline code.\n\n"); match( $text->[5], "There be /a/file.\n\n"); __DATA__ =head1 NAME This is B text. Just B. This is I text. Just I. This is B> text. Just B>. This is I> text. Just I>. This is C text. Just C. There be F.