1# head ends over 2use strict; 3use warnings; 4use Test::More tests => 6; 5 6BEGIN { 7 require FindBin; 8 unshift @INC, $FindBin::Bin . '/lib'; 9} 10use helpers qw(f); 11 12my $d; 13#use Pod::Simple::Debug (\$d,0); 14 15use Pod::Simple::DumpAsXML; 16use Pod::Simple::XMLOutStream; 17print "# Pod::Simple version $Pod::Simple::VERSION\n"; 18 19sub nowhine { 20 $_[0]->{'no_whining'} = 1; 21} 22 23&is(f( 24\&nowhine, 25"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff. Um.\n\nBrop.\n\n=head1 SVUP\n\nMyup.", 26"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff. Um.\n\nBrop.\n\n=back\n\n=head1 SVUP\n\nMyup.", 27)); 28 29&is(f( 30\&nowhine, 31"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff. Um.\n\nBrop.\n\n=head2 SVUP\n\nMyup.", 32"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff. Um.\n\nBrop.\n\n=back\n\n=head2 SVUP\n\nMyup.", 33)); 34 35&is(f( 36\&nowhine, 37"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff. Um.\n\nBrop.\n\n=head3 SVUP\n\nMyup.", 38"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff. Um.\n\nBrop.\n\n=back\n\n=head3 SVUP\n\nMyup.", 39)); 40 41&is(f( 42\&nowhine, 43"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff. Um.\n\nBrop.\n\n=head4 SVUP\n\nMyup.", 44"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff. Um.\n\nBrop.\n\n=back\n\n=head4 SVUP\n\nMyup.", 45)); 46 47&is(f( 48\&nowhine, 49"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff. Um.\n\nBrop.\n\n=head5 SVUP\n\nMyup.", 50"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff. Um.\n\nBrop.\n\n=back\n\n=head5 SVUP\n\nMyup.", 51)); 52 53&is(f( 54\&nowhine, 55"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff. Um.\n\nBrop.\n\n=head6 SVUP\n\nMyup.", 56"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff. Um.\n\nBrop.\n\n=back\n\n=head6 SVUP\n\nMyup.", 57)); 58