#!/usr/bin/perl -w # t/fcodes.t - check formatting codes BEGIN { chdir 't' if -d 't'; } use strict; use lib '../lib'; use Test::More tests => 4; use_ok('Pod::PseudoPod::HTML') or exit; my $parser = Pod::PseudoPod::HTML->new (); isa_ok ($parser, 'Pod::PseudoPod::HTML'); my $results; initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod B You astound me, Brain! EOPOD is($results, <<'EOHTML', "simple B<> code");

Egad! You astound me, Brain!

EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod literal code with B characters and some more lines, to test. EOPOD is($results, <<'EOHTML', "B<> in literal code");
  literal code with bold characters
  and some more lines, to test.
EOHTML ###################################### sub initialize { $_[0] = Pod::PseudoPod::HTML->new (); $_[0]->output_string( \$results ); # Send the resulting output to a string $_[1] = ''; return; }