# Testing HTML text styles BEGIN { if($ENV{PERL_CORE}) { chdir 't'; @INC = '../lib'; } } #use Pod::Simple::Debug (10); use strict; use Test; BEGIN { plan tests => 7}; use Pod::Simple::HTML; sub x ($) { Pod::Simple::HTML->_out( sub{ $_[0]->bare_output(1) }, "=pod\n\n$_[0]", ) } ok 1; my @pairs = ( [ "I" => qq{\n

italicized

\n} ], [ 'B' => qq{\n

bolded

\n} ], [ 'C' => qq{\n

code

\n} ], [ 'F' => qq{\n

/tmp/foo

\n} ], [ 'F' => qq{\n

/tmp/foo

\n} ], ); foreach( @pairs ) { print "# Testing pod source $$_[0] ...\n" unless $_->[0] =~ m/\n/; ok( x($_->[0]), $_->[1] ) } print "# And one for the road...\n"; ok 1;