2
#use Pod::Simple::Debug (2);
6
BEGIN { plan tests => 11 };
11
use Pod::Simple::DumpAsXML;
12
use Pod::Simple::XMLOutStream;
13
print "# Pod::Simple version $Pod::Simple::VERSION\n";
14
sub e ($$) { Pod::Simple::DumpAsXML->_duo(@_) }
16
ok( Pod::Simple::XMLOutStream->_out("=head1 =head1"),
17
'<Document><head1>=head1</head1></Document>'
20
ok( Pod::Simple::XMLOutStream->_out("\n=head1 =head1"),
21
'<Document><head1>=head1</head1></Document>'
24
ok( Pod::Simple::XMLOutStream->_out("\n=head1 =head1\n"),
25
'<Document><head1>=head1</head1></Document>'
28
ok( Pod::Simple::XMLOutStream->_out("\n=head1 =head1\n\n"),
29
'<Document><head1>=head1</head1></Document>'
32
&ok(e "\n=head1 =head1\n\n" , "\n=head1 =head1\n\n");
34
&ok(e "\n=head1\n=head1\n\n", "\n=head1 =head1\n\n");
36
&ok(e "\n=pod\n\nCha cha cha\n\n" , "\n=pod\n\nCha cha cha\n\n");
37
&ok(e "\n=pod\n\nCha\tcha cha\n\n" , "\n=pod\n\nCha cha cha\n\n");
38
&ok(e "\n=pod\n\nCha\ncha cha\n\n" , "\n=pod\n\nCha cha cha\n\n");
40
print "# Wrapping up... one for the road...\n";
42
print "# --- Done with ", __FILE__, " --- \n";