BEGIN {
if
(
$ENV
{PERL_CORE}) {
chdir
't'
;
@INC
=
'../lib'
;
}
}
BEGIN { plan
tests
=> 101 };
ok 1;
print
"# Pod::Simple version $Pod::Simple::VERSION\n"
;
sub
e ($$) { Pod::Simple::DumpAsXML->_duo(
@_
) }
my
$x
=
'Pod::Simple::XMLOutStream'
;
print
"##### Testing L codes via x class $x...\n"
;
$Pod::Simple::XMLOutStream::ATTR_PAD
=
' '
;
$Pod::Simple::XMLOutStream::SORT_ATTRS
= 1;
print
"# Simple/moderate L<stuff> tests...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<Net::Ping>\n}
),
'<Document><Para><L content-implicit="yes" raw="Net::Ping" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<crontab(5)>\n}
),
'<Document><Para><L content-implicit="yes" raw="crontab(5)" to="crontab(5)" type="man">crontab(5)</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<login.conf(5)>\n}
),
'<Document><Para><L content-implicit="yes" raw="login.conf(5)" to="login.conf(5)" type="man">login.conf(5)</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<foo_bar(5)>\n}
),
'<Document><Para><L content-implicit="yes" raw="foo_bar(5)" to="foo_bar(5)" type="man">foo_bar(5)</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Net::Ping/Ping-pong>\n}
),
'<Document><Para><L content-implicit="yes" raw="Net::Ping/Ping-pong" section="Ping-pong" to="Net::Ping" type="pod">"Ping-pong" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Net::Ping/"Ping-pong">\n}
),
'<Document><Para><L content-implicit="yes" raw="Net::Ping/"Ping-pong"" section="Ping-pong" to="Net::Ping" type="pod">"Ping-pong" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</"Object Methods">\n}
),
'<Document><Para><L content-implicit="yes" raw="/"Object Methods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</Object Methods>\n}
),
'<Document><Para><L content-implicit="yes" raw="/Object Methods" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<"Object Methods">\n}
),
'<Document><Para><L content-implicit="yes" raw=""Object Methods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
print
"# Complex L<stuff> tests...\n"
;
print
"# Ents in the middle...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<Net::Ping>\n}
),
'<Document><Para><L content-implicit="yes" raw="Net::Ping" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Net::Ping/Ping-E<112>ong>\n}
),
'<Document><Para><L content-implicit="yes" raw="Net::Ping/Ping-E<112>ong" section="Ping-pong" to="Net::Ping" type="pod">"Ping-pong" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Net::Ping/"Ping-E<112>ong">\n}
),
'<Document><Para><L content-implicit="yes" raw="Net::Ping/"Ping-E<112>ong"" section="Ping-pong" to="Net::Ping" type="pod">"Ping-pong" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</"Object E<77>ethods">\n}
),
'<Document><Para><L content-implicit="yes" raw="/"Object E<77>ethods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</Object E<77>ethods>\n}
),
'<Document><Para><L content-implicit="yes" raw="/Object E<77>ethods" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<"Object E<77>ethods">\n}
),
'<Document><Para><L content-implicit="yes" raw=""Object E<77>ethods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
print
"# Ents in the middle and at the start...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<E<78>et::Ping>\n}
),
'<Document><Para><L content-implicit="yes" raw="E<78>et::Ping" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<E<78>et::Ping/Ping-E<112>ong>\n}
),
'<Document><Para><L content-implicit="yes" raw="E<78>et::Ping/Ping-E<112>ong" section="Ping-pong" to="Net::Ping" type="pod">"Ping-pong" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<E<78>et::Ping/"Ping-E<112>ong">\n}
),
'<Document><Para><L content-implicit="yes" raw="E<78>et::Ping/"Ping-E<112>ong"" section="Ping-pong" to="Net::Ping" type="pod">"Ping-pong" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</"E<79>bject E<77>ethods">\n}
),
'<Document><Para><L content-implicit="yes" raw="/"E<79>bject E<77>ethods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</E<79>bject E<77>ethods>\n}
),
'<Document><Para><L content-implicit="yes" raw="/E<79>bject E<77>ethods" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<"E<79>bject E<77>ethods">\n}
),
'<Document><Para><L content-implicit="yes" raw=""E<79>bject E<77>ethods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
print
"# Ents in the middle and at the start and at the end...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<E<78>et::PinE<103>>\n}
),
'<Document><Para><L content-implicit="yes" raw="E<78>et::PinE<103>" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<E<78>et::PinE<103>/Ping-E<112>onE<103>>\n}
),
'<Document><Para><L content-implicit="yes" raw="E<78>et::PinE<103>/Ping-E<112>onE<103>" section="Ping-pong" to="Net::Ping" type="pod">"Ping-pong" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<E<78>et::PinE<103>/"Ping-E<112>onE<103>">\n}
),
'<Document><Para><L content-implicit="yes" raw="E<78>et::PinE<103>/"Ping-E<112>onE<103>"" section="Ping-pong" to="Net::Ping" type="pod">"Ping-pong" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</"E<79>bject E<77>ethodE<115>">\n}
),
'<Document><Para><L content-implicit="yes" raw="/"E<79>bject E<77>ethodE<115>"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</E<79>bject E<77>ethodE<115>>\n}
),
'<Document><Para><L content-implicit="yes" raw="/E<79>bject E<77>ethodE<115>" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<"E<79>bject E<77>ethodE<115>">\n}
),
'<Document><Para><L content-implicit="yes" raw=""E<79>bject E<77>ethodE<115>"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
print
"# Even more complex L<stuff> tests...\n"
;
print
"# Ents in the middle...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<Net::Ping>\n}
),
'<Document><Para><L content-implicit="yes" raw="Net::Ping" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Net::Ping/Ping-E<112>ong>\n}
),
'<Document><Para><L content-implicit="yes" raw="Net::Ping/Ping-E<112>ong" section="Ping-pong" to="Net::Ping" type="pod">"Ping-pong" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Net::Ping/"Ping-E<112>ong">\n}
),
'<Document><Para><L content-implicit="yes" raw="Net::Ping/"Ping-E<112>ong"" section="Ping-pong" to="Net::Ping" type="pod">"Ping-pong" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</"Object E<77>ethods">\n}
),
'<Document><Para><L content-implicit="yes" raw="/"Object E<77>ethods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</Object E<77>ethods>\n}
),
'<Document><Para><L content-implicit="yes" raw="/Object E<77>ethods" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<"Object E<77>ethods">\n}
),
'<Document><Para><L content-implicit="yes" raw=""Object E<77>ethods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>'
);
print
"# VERY complex L sequences...\n"
;
print
"# Ents in the middle and at the start...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<Net::Ping>\n}
),
'<Document><Para><L content-implicit="yes" raw="Net::Ping" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Net::Ping/Ping-B<E<112>ong>>\n}
),
'<Document><Para><L content-implicit="yes" raw="Net::Ping/Ping-B<E<112>ong>" section="Ping-pong" to="Net::Ping" type="pod">"Ping-<B>pong</B>" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Net::Ping/"Ping-B<E<112>ong>">\n}
),
'<Document><Para><L content-implicit="yes" raw="Net::Ping/"Ping-B<E<112>ong>"" section="Ping-pong" to="Net::Ping" type="pod">"Ping-<B>pong</B>" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</"B<Object> E<77>ethods">\n}
),
'<Document><Para><L content-implicit="yes" raw="/"B<Object> E<77>ethods"" section="Object Methods" type="pod">"<B>Object</B> Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</B<Object> E<77>ethods>\n}
),
'<Document><Para><L content-implicit="yes" raw="/B<Object> E<77>ethods" section="Object Methods" type="pod">"<B>Object</B> Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<"B<Object> E<77>ethods">\n}
),
'<Document><Para><L content-implicit="yes" raw=""B<Object> E<77>ethods"" section="Object Methods" type="pod">"<B>Object</B> Methods"</L></Para></Document>'
);
print
"# Ents in the middle and at the start...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<E<78>et::Ping>\n}
),
'<Document><Para><L content-implicit="yes" raw="E<78>et::Ping" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<E<78>et::Ping/Ping-B<E<112>ong>>\n}
),
'<Document><Para><L content-implicit="yes" raw="E<78>et::Ping/Ping-B<E<112>ong>" section="Ping-pong" to="Net::Ping" type="pod">"Ping-<B>pong</B>" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<E<78>et::Ping/"Ping-B<E<112>ong>">\n}
),
'<Document><Para><L content-implicit="yes" raw="E<78>et::Ping/"Ping-B<E<112>ong>"" section="Ping-pong" to="Net::Ping" type="pod">"Ping-<B>pong</B>" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</"B<E<79>bject> E<77>ethods">\n}
),
'<Document><Para><L content-implicit="yes" raw="/"B<E<79>bject> E<77>ethods"" section="Object Methods" type="pod">"<B>Object</B> Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</B<E<79>bject> E<77>ethods>\n}
),
'<Document><Para><L content-implicit="yes" raw="/B<E<79>bject> E<77>ethods" section="Object Methods" type="pod">"<B>Object</B> Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<"B<E<79>bject> E<77>ethods">\n}
),
'<Document><Para><L content-implicit="yes" raw=""B<E<79>bject> E<77>ethods"" section="Object Methods" type="pod">"<B>Object</B> Methods"</L></Para></Document>'
);
print
"# Ents in the middle and at the start and at the end...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<E<78>et::PinE<103>>\n}
),
'<Document><Para><L content-implicit="yes" raw="E<78>et::PinE<103>" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<E<78>et::PinE<103>/Ping-B<E<112>onE<103>>>\n}
),
'<Document><Para><L content-implicit="yes" raw="E<78>et::PinE<103>/Ping-B<E<112>onE<103>>" section="Ping-pong" to="Net::Ping" type="pod">"Ping-<B>pong</B>" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<E<78>et::PinE<103>/"Ping-B<E<112>onE<103>>">\n}
),
'<Document><Para><L content-implicit="yes" raw="E<78>et::PinE<103>/"Ping-B<E<112>onE<103>>"" section="Ping-pong" to="Net::Ping" type="pod">"Ping-<B>pong</B>" in Net::Ping</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</"B<E<79>bject> E<77>ethodE<115>">\n}
),
'<Document><Para><L content-implicit="yes" raw="/"B<E<79>bject> E<77>ethodE<115>"" section="Object Methods" type="pod">"<B>Object</B> Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL</B<E<79>bject> E<77>ethodE<115>>\n}
),
'<Document><Para><L content-implicit="yes" raw="/B<E<79>bject> E<77>ethodE<115>" section="Object Methods" type="pod">"<B>Object</B> Methods"</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<"B<E<79>bject> E<77>ethodE<115>">\n}
),
'<Document><Para><L content-implicit="yes" raw=""B<E<79>bject> E<77>ethodE<115>"" section="Object Methods" type="pod">"<B>Object</B> Methods"</L></Para></Document>'
);
print
"#\n# L<url> tests...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<news:comp.lang.perl.misc>\n}
),
'<Document><Para><L content-implicit="yes" raw="news:comp.lang.perl.misc" to="news:comp.lang.perl.misc" type="url">news:comp.lang.perl.misc</L></Para></Document>'
);
);
);
print
"# L<url> tests with entities...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<news:compE<46>lang.perl.misc>\n}
),
'<Document><Para><L content-implicit="yes" raw="news:compE<46>lang.perl.misc" to="news:comp.lang.perl.misc" type="url">news:comp.lang.perl.misc</L></Para></Document>'
);
);
);
);
print
"# L<text|stuff> tests...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<things|crontab(5)>\n}
),
'<Document><Para><L raw="things|crontab(5)" to="crontab(5)" type="man">things</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<things|crontab(5)/ENVIRONMENT>\n}
),
'<Document><Para><L raw="things|crontab(5)/ENVIRONMENT" section="ENVIRONMENT" to="crontab(5)" type="man">things</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<things|crontab(5)/"ENVIRONMENT">\n}
),
'<Document><Para><L raw="things|crontab(5)/"ENVIRONMENT"" section="ENVIRONMENT" to="crontab(5)" type="man">things</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Perl Error Messages|perldiag>\n}
),
'<Document><Para><L raw="Perl Error Messages|perldiag" to="perldiag" type="pod">Perl Error Messages</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Perl\nError\nMessages|perldiag>\n}
),
'<Document><Para><L raw="Perl Error Messages|perldiag" to="perldiag" type="pod">Perl Error Messages</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Perl\nError\t Messages|perldiag>\n}
),
'<Document><Para><L raw="Perl Error Messages|perldiag" to="perldiag" type="pod">Perl Error Messages</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<SWITCH statements|perlsyn/"Basic BLOCKs and Switch Statements">\n}
),
'<Document><Para><L raw="SWITCH statements|perlsyn/"Basic BLOCKs and Switch Statements"" section="Basic BLOCKs and Switch Statements" to="perlsyn" type="pod">SWITCH statements</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<SWITCH statements|perlsyn/Basic BLOCKs and Switch Statements>\n}
),
'<Document><Para><L raw="SWITCH statements|perlsyn/Basic BLOCKs and Switch Statements" section="Basic BLOCKs and Switch Statements" to="perlsyn" type="pod">SWITCH statements</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<the various attributes|/"Member Data">\n}
),
'<Document><Para><L raw="the various attributes|/"Member Data"" section="Member Data" type="pod">the various attributes</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<the various attributes|/Member Data>\n}
),
'<Document><Para><L raw="the various attributes|/Member Data" section="Member Data" type="pod">the various attributes</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<the various attributes|"Member Data">\n}
),
'<Document><Para><L raw="the various attributes|"Member Data"" section="Member Data" type="pod">the various attributes</L></Para></Document>'
);
print
"#\n# Now some very complex L<text|stuff> tests...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<Perl B<Error E<77>essages>|perldiag>\n}
),
'<Document><Para><L raw="Perl B<Error E<77>essages>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Perl\nB<Error\nE<77>essages>|perldiag>\n}
),
'<Document><Para><L raw="Perl B<Error E<77>essages>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<Perl\nB<Error\t E<77>essages>|perldiag>\n}
),
'<Document><Para><L raw="Perl B<Error E<77>essages>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<SWITCH B<E<115>tatements>|perlsyn/"Basic I<BLOCKs> and Switch StatementE<115>">\n}
),
'<Document><Para><L raw="SWITCH B<E<115>tatements>|perlsyn/"Basic I<BLOCKs> and Switch StatementE<115>"" section="Basic BLOCKs and Switch Statements" to="perlsyn" type="pod">SWITCH <B>statements</B></L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<SWITCH B<E<115>tatements>|perlsyn/Basic I<BLOCKs> and Switch StatementE<115>>\n}
),
'<Document><Para><L raw="SWITCH B<E<115>tatements>|perlsyn/Basic I<BLOCKs> and Switch StatementE<115>" section="Basic BLOCKs and Switch Statements" to="perlsyn" type="pod">SWITCH <B>statements</B></L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<the F<various> attributes|/"Member Data">\n}
),
'<Document><Para><L raw="the F<various> attributes|/"Member Data"" section="Member Data" type="pod">the <F>various</F> attributes</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<the F<various> attributes|/Member Data>\n}
),
'<Document><Para><L raw="the F<various> attributes|/Member Data" section="Member Data" type="pod">the <F>various</F> attributes</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<the F<various> attributes|"Member Data">\n}
),
'<Document><Para><L raw="the F<various> attributes|"Member Data"" section="Member Data" type="pod">the <F>various</F> attributes</L></Para></Document>'
);
print
"#\n# Now some very complex L<text|stuff> tests with variant syntax...\n"
;
ok(
$x
->_out(
qq{=pod\n\nL<< Perl B<<< Error E<77>essages >>>|perldiag >>\n}
),
'<Document><Para><L raw="Perl B<<< Error E<77>essages >>>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<< Perl\nB<<< Error\nE<77>essages >>>|perldiag >>\n}
),
'<Document><Para><L raw="Perl B<<< Error E<77>essages >>>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<< Perl\nB<<< Error\t E<77>essages >>>|perldiag >>\n}
),
'<Document><Para><L raw="Perl B<<< Error E<77>essages >>>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<< SWITCH B<<< E<115>tatements >>>|perlsyn/"Basic I<<<< BLOCKs >>>> and Switch StatementE<115>" >>\n}
),
'<Document><Para><L raw="SWITCH B<<< E<115>tatements >>>|perlsyn/"Basic I<<<< BLOCKs >>>> and Switch StatementE<115>"" section="Basic BLOCKs and Switch Statements" to="perlsyn" type="pod">SWITCH <B>statements</B></L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<< SWITCH B<<< E<115>tatements >>>|perlsyn/Basic I<<<< BLOCKs >>>> and Switch StatementE<115> >>\n}
),
'<Document><Para><L raw="SWITCH B<<< E<115>tatements >>>|perlsyn/Basic I<<<< BLOCKs >>>> and Switch StatementE<115>" section="Basic BLOCKs and Switch Statements" to="perlsyn" type="pod">SWITCH <B>statements</B></L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<<< the F<< various >> attributes|/"Member Data" >>>\n}
),
'<Document><Para><L raw="the F<< various >> attributes|/"Member Data"" section="Member Data" type="pod">the <F>various</F> attributes</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<<< the F<< various >> attributes|/Member Data >>>\n}
),
'<Document><Para><L raw="the F<< various >> attributes|/Member Data" section="Member Data" type="pod">the <F>various</F> attributes</L></Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nL<<< the F<< various >> attributes|"Member Data" >>>\n}
),
'<Document><Para><L raw="the F<< various >> attributes|"Member Data"" section="Member Data" type="pod">the <F>various</F> attributes</L></Para></Document>'
);
print
"#\n# Now some very complex L<text|stuff> tests with variant syntax and text around it...\n"
;
ok(
$x
->_out(
qq{=pod\n\nI like L<< Perl B<<< Error E<77>essages >>>|perldiag >>.\n}
),
'<Document><Para>I like <L raw="Perl B<<< Error E<77>essages >>>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L>.</Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nI like L<< Perl\nB<<< Error\nE<77>essages >>>|perldiag >>.\n}
),
'<Document><Para>I like <L raw="Perl B<<< Error E<77>essages >>>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L>.</Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nI like L<< Perl\nB<<< Error\t E<77>essages >>>|perldiag >>.\n}
),
'<Document><Para>I like <L raw="Perl B<<< Error E<77>essages >>>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L>.</Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nI like L<< SWITCH B<<< E<115>tatements >>>|perlsyn/"Basic I<<<< BLOCKs >>>> and Switch StatementE<115>" >>.\n}
),
'<Document><Para>I like <L raw="SWITCH B<<< E<115>tatements >>>|perlsyn/"Basic I<<<< BLOCKs >>>> and Switch StatementE<115>"" section="Basic BLOCKs and Switch Statements" to="perlsyn" type="pod">SWITCH <B>statements</B></L>.</Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nI like L<< SWITCH B<<< E<115>tatements >>>|perlsyn/Basic I<<<< BLOCKs >>>> and Switch StatementE<115> >>.\n}
),
'<Document><Para>I like <L raw="SWITCH B<<< E<115>tatements >>>|perlsyn/Basic I<<<< BLOCKs >>>> and Switch StatementE<115>" section="Basic BLOCKs and Switch Statements" to="perlsyn" type="pod">SWITCH <B>statements</B></L>.</Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nI like L<<< the F<< various >> attributes|/"Member Data" >>>.\n}
),
'<Document><Para>I like <L raw="the F<< various >> attributes|/"Member Data"" section="Member Data" type="pod">the <F>various</F> attributes</L>.</Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nI like L<<< the F<< various >> attributes|/Member Data >>>.\n}
),
'<Document><Para>I like <L raw="the F<< various >> attributes|/Member Data" section="Member Data" type="pod">the <F>various</F> attributes</L>.</Para></Document>'
);
ok(
$x
->_out(
qq{=pod\n\nI like L<<< the F<< various >> attributes|"Member Data" >>>.\n}
),
'<Document><Para>I like <L raw="the F<< various >> attributes|"Member Data"" section="Member Data" type="pod">the <F>various</F> attributes</L>.</Para></Document>'
);
);
);
);
);
ok(
$x
->_out(
qq{=pod\n\nI like L<<< I<tI<eI<xI<t>>>>|mailto:earlE<64>text.com >>>.\n}
),
'<Document><Para>I like <L raw="I<tI<eI<xI<t>>>>|mailto:earlE<64>text.com" to="mailto:earl@text.com" type="url"><I>t<I>e<I>x<I>t</I></I></I></I></L>.</Para></Document>'
);
);
print
"# Wrapping up... one for the road...\n"
;
ok 1;
print
"# --- Done with "
, __FILE__,
" --- \n"
;