xref: /openbsd-src/gnu/usr.bin/perl/cpan/Pod-Simple/t/end_over.t (revision 5486feefcc8cb79b19e014ab332cc5dfd05b3b33)
1b39c5158Smillert# head ends over
2b39c5158Smillertuse strict;
3256a93a4Safresh1use warnings;
4*5486feefSafresh1use Test::More tests => 6;
5256a93a4Safresh1
6256a93a4Safresh1BEGIN {
7256a93a4Safresh1  require FindBin;
8256a93a4Safresh1  unshift @INC, $FindBin::Bin . '/lib';
9256a93a4Safresh1}
10*5486feefSafresh1use helpers qw(f);
11b39c5158Smillert
12b39c5158Smillertmy $d;
13b39c5158Smillert#use Pod::Simple::Debug (\$d,0);
14b39c5158Smillert
15b39c5158Smillertuse Pod::Simple::DumpAsXML;
16b39c5158Smillertuse Pod::Simple::XMLOutStream;
17b39c5158Smillertprint "# Pod::Simple version $Pod::Simple::VERSION\n";
18b39c5158Smillert
19b39c5158Smillertsub nowhine {
20b39c5158Smillert  $_[0]->{'no_whining'} = 1;
21b39c5158Smillert}
22b39c5158Smillert
23*5486feefSafresh1&is(f(
24256a93a4Safresh1\&nowhine,
25b39c5158Smillert"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff.  Um.\n\nBrop.\n\n=head1 SVUP\n\nMyup.",
26b39c5158Smillert"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff.  Um.\n\nBrop.\n\n=back\n\n=head1 SVUP\n\nMyup.",
27b39c5158Smillert));
28b39c5158Smillert
29*5486feefSafresh1&is(f(
30256a93a4Safresh1\&nowhine,
31b39c5158Smillert"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff.  Um.\n\nBrop.\n\n=head2 SVUP\n\nMyup.",
32b39c5158Smillert"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff.  Um.\n\nBrop.\n\n=back\n\n=head2 SVUP\n\nMyup.",
33b39c5158Smillert));
34b39c5158Smillert
35*5486feefSafresh1&is(f(
36256a93a4Safresh1\&nowhine,
37b39c5158Smillert"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff.  Um.\n\nBrop.\n\n=head3 SVUP\n\nMyup.",
38b39c5158Smillert"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff.  Um.\n\nBrop.\n\n=back\n\n=head3 SVUP\n\nMyup.",
39b39c5158Smillert));
40b39c5158Smillert
41*5486feefSafresh1&is(f(
42256a93a4Safresh1\&nowhine,
43b39c5158Smillert"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff.  Um.\n\nBrop.\n\n=head4 SVUP\n\nMyup.",
44b39c5158Smillert"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff.  Um.\n\nBrop.\n\n=back\n\n=head4 SVUP\n\nMyup.",
45b39c5158Smillert));
46b39c5158Smillert
47*5486feefSafresh1&is(f(
48256a93a4Safresh1\&nowhine,
49256a93a4Safresh1"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff.  Um.\n\nBrop.\n\n=head5 SVUP\n\nMyup.",
50256a93a4Safresh1"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff.  Um.\n\nBrop.\n\n=back\n\n=head5 SVUP\n\nMyup.",
51256a93a4Safresh1));
52256a93a4Safresh1
53*5486feefSafresh1&is(f(
54256a93a4Safresh1\&nowhine,
55256a93a4Safresh1"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff.  Um.\n\nBrop.\n\n=head6 SVUP\n\nMyup.",
56256a93a4Safresh1"=head2 BLOOP\n\nHoopbehwo!\n\n=over\n\n=item Stuff.  Um.\n\nBrop.\n\n=back\n\n=head6 SVUP\n\nMyup.",
57256a93a4Safresh1));
58