1b39c5158Smillert# fcodes L 2b39c5158Smillertuse strict; 3256a93a4Safresh1use warnings; 4*5486feefSafresh1use Test::More tests => 99; 5b39c5158Smillert 6256a93a4Safresh1BEGIN { 7256a93a4Safresh1 require FindBin; 8256a93a4Safresh1 unshift @INC, $FindBin::Bin . '/lib'; 9256a93a4Safresh1} 10*5486feefSafresh1use helpers; 11256a93a4Safresh1 12b39c5158Smillert#use Pod::Simple::Debug (10); 13b39c5158Smillert 14b39c5158Smillertuse Pod::Simple::DumpAsXML; 15b39c5158Smillertuse Pod::Simple::XMLOutStream; 16b39c5158Smillertprint "# Pod::Simple version $Pod::Simple::VERSION\n"; 17256a93a4Safresh1 18b39c5158Smillertmy $x = 'Pod::Simple::XMLOutStream'; 19b39c5158Smillert 20b39c5158Smillertprint "##### Testing L codes via x class $x...\n"; 21b39c5158Smillert 22b39c5158Smillert$Pod::Simple::XMLOutStream::ATTR_PAD = ' '; 23b39c5158Smillert$Pod::Simple::XMLOutStream::SORT_ATTRS = 1; # for predictably testable output 24b39c5158Smillert 25b39c5158Smillertprint "# Simple/moderate L<stuff> tests...\n"; 26b39c5158Smillert 27*5486feefSafresh1is($x->_out(qq{=pod\n\nL<Net::Ping>\n}), 28898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="Net::Ping" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>' 29b39c5158Smillert); 30b39c5158Smillert 31*5486feefSafresh1is($x->_out(qq{=pod\n\nL<crontab(5)>\n}), 32898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="crontab(5)" to="crontab(5)" type="man">crontab(5)</L></Para></Document>' 33b39c5158Smillert); 34b39c5158Smillert 35*5486feefSafresh1is($x->_out(qq{=pod\n\nL<login.conf(5)>\n}), 3691f110e0Safresh1 '<Document><Para><L content-implicit="yes" raw="login.conf(5)" to="login.conf(5)" type="man">login.conf(5)</L></Para></Document>' 3791f110e0Safresh1); 3891f110e0Safresh1 39*5486feefSafresh1is($x->_out(qq{=pod\n\nL<foo_bar(5)>\n}), 4091f110e0Safresh1 '<Document><Para><L content-implicit="yes" raw="foo_bar(5)" to="foo_bar(5)" type="man">foo_bar(5)</L></Para></Document>' 4191f110e0Safresh1); 4291f110e0Safresh1 43*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Net::Ping/Ping-pong>\n}), 44898184e3Ssthen '<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>' 45b39c5158Smillert); 46b39c5158Smillert 47*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Net::Ping/"Ping-pong">\n}), 48898184e3Ssthen '<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>' 49b39c5158Smillert); 50b39c5158Smillert 51*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</"Object Methods">\n}), 52898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="/"Object Methods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 53b39c5158Smillert); 54*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</Object Methods>\n}), 55898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="/Object Methods" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 56b39c5158Smillert); 57*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<"Object Methods">\n}), 58898184e3Ssthen '<Document><Para><L content-implicit="yes" raw=""Object Methods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 59b39c5158Smillert); 60b39c5158Smillert 61b39c5158Smillert 62b39c5158Smillertprint "# Complex L<stuff> tests...\n"; 63b39c5158Smillertprint "# Ents in the middle...\n"; 64b39c5158Smillert 65*5486feefSafresh1is($x->_out(qq{=pod\n\nL<Net::Ping>\n}), 66898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="Net::Ping" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>' 67b39c5158Smillert); 68*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Net::Ping/Ping-E<112>ong>\n}), 69898184e3Ssthen '<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>' 70b39c5158Smillert); 71*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Net::Ping/"Ping-E<112>ong">\n}), 72898184e3Ssthen '<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>' 73b39c5158Smillert); 74b39c5158Smillert 75*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</"Object E<77>ethods">\n}), 76898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="/"Object E<77>ethods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 77b39c5158Smillert); 78*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</Object E<77>ethods>\n}), 79898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="/Object E<77>ethods" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 80b39c5158Smillert); 81*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<"Object E<77>ethods">\n}), 82898184e3Ssthen '<Document><Para><L content-implicit="yes" raw=""Object E<77>ethods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 83b39c5158Smillert); 84b39c5158Smillert 85b39c5158Smillert 86b39c5158Smillert 87b39c5158Smillertprint "# Ents in the middle and at the start...\n"; 88b39c5158Smillert 89*5486feefSafresh1is($x->_out(qq{=pod\n\nL<E<78>et::Ping>\n}), 90898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="E<78>et::Ping" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>' 91b39c5158Smillert); 92*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<E<78>et::Ping/Ping-E<112>ong>\n}), 93898184e3Ssthen '<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>' 94b39c5158Smillert); 95*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<E<78>et::Ping/"Ping-E<112>ong">\n}), 96898184e3Ssthen '<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>' 97b39c5158Smillert); 98b39c5158Smillert 99*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</"E<79>bject E<77>ethods">\n}), 100898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="/"E<79>bject E<77>ethods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 101b39c5158Smillert); 102*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</E<79>bject E<77>ethods>\n}), 103898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="/E<79>bject E<77>ethods" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 104b39c5158Smillert); 105*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<"E<79>bject E<77>ethods">\n}), 106898184e3Ssthen '<Document><Para><L content-implicit="yes" raw=""E<79>bject E<77>ethods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 107b39c5158Smillert); 108b39c5158Smillert 109b39c5158Smillert 110b39c5158Smillertprint "# Ents in the middle and at the start and at the end...\n"; 111b39c5158Smillert 112*5486feefSafresh1is($x->_out(qq{=pod\n\nL<E<78>et::PinE<103>>\n}), 113898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="E<78>et::PinE<103>" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>' 114b39c5158Smillert); 115*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<E<78>et::PinE<103>/Ping-E<112>onE<103>>\n}), 116898184e3Ssthen '<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>' 117b39c5158Smillert); 118*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<E<78>et::PinE<103>/"Ping-E<112>onE<103>">\n}), 119898184e3Ssthen '<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>' 120b39c5158Smillert); 121b39c5158Smillert 122*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</"E<79>bject E<77>ethodE<115>">\n}), 123898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="/"E<79>bject E<77>ethodE<115>"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 124b39c5158Smillert); 125*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</E<79>bject E<77>ethodE<115>>\n}), 126898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="/E<79>bject E<77>ethodE<115>" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 127b39c5158Smillert); 128*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<"E<79>bject E<77>ethodE<115>">\n}), 129898184e3Ssthen '<Document><Para><L content-implicit="yes" raw=""E<79>bject E<77>ethodE<115>"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 130b39c5158Smillert); 131b39c5158Smillert 132b39c5158Smillert 133b39c5158Smillertprint "# Even more complex L<stuff> tests...\n"; 134b39c5158Smillert 135b39c5158Smillert 136b39c5158Smillertprint "# Ents in the middle...\n"; 137b39c5158Smillert 138*5486feefSafresh1is($x->_out(qq{=pod\n\nL<Net::Ping>\n}), 139898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="Net::Ping" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>' 140b39c5158Smillert); 141*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Net::Ping/Ping-E<112>ong>\n}), 142898184e3Ssthen '<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>' 143b39c5158Smillert); 144*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Net::Ping/"Ping-E<112>ong">\n}), 145898184e3Ssthen '<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>' 146b39c5158Smillert); 147b39c5158Smillert 148*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</"Object E<77>ethods">\n}), 149898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="/"Object E<77>ethods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 150b39c5158Smillert); 151*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</Object E<77>ethods>\n}), 152898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="/Object E<77>ethods" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 153b39c5158Smillert); 154*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<"Object E<77>ethods">\n}), 155898184e3Ssthen '<Document><Para><L content-implicit="yes" raw=""Object E<77>ethods"" section="Object Methods" type="pod">"Object Methods"</L></Para></Document>' 156b39c5158Smillert); 157b39c5158Smillert 158b39c5158Smillert 159b39c5158Smillert########################################################################### 160b39c5158Smillert 161b39c5158Smillertprint "# VERY complex L sequences...\n"; 162b39c5158Smillertprint "# Ents in the middle and at the start...\n"; 163b39c5158Smillert 164b39c5158Smillert 165*5486feefSafresh1is($x->_out(qq{=pod\n\nL<Net::Ping>\n}), 166898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="Net::Ping" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>' 167b39c5158Smillert); 168*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Net::Ping/Ping-B<E<112>ong>>\n}), 169898184e3Ssthen '<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>' 170b39c5158Smillert); 171*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Net::Ping/"Ping-B<E<112>ong>">\n}), 172898184e3Ssthen '<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>' 173b39c5158Smillert); 174b39c5158Smillert 175*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</"B<Object> E<77>ethods">\n}), 176898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="/"B<Object> E<77>ethods"" section="Object Methods" type="pod">"<B>Object</B> Methods"</L></Para></Document>' 177b39c5158Smillert); 178*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</B<Object> E<77>ethods>\n}), 179898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="/B<Object> E<77>ethods" section="Object Methods" type="pod">"<B>Object</B> Methods"</L></Para></Document>' 180b39c5158Smillert); 181*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<"B<Object> E<77>ethods">\n}), 182898184e3Ssthen '<Document><Para><L content-implicit="yes" raw=""B<Object> E<77>ethods"" section="Object Methods" type="pod">"<B>Object</B> Methods"</L></Para></Document>' 183b39c5158Smillert); 184b39c5158Smillert 185b39c5158Smillert 186b39c5158Smillert 187b39c5158Smillertprint "# Ents in the middle and at the start...\n"; 188b39c5158Smillert 189*5486feefSafresh1is($x->_out(qq{=pod\n\nL<E<78>et::Ping>\n}), 190898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="E<78>et::Ping" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>' 191b39c5158Smillert); 192*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<E<78>et::Ping/Ping-B<E<112>ong>>\n}), 193898184e3Ssthen '<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>' 194b39c5158Smillert); 195*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<E<78>et::Ping/"Ping-B<E<112>ong>">\n}), 196898184e3Ssthen '<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>' 197b39c5158Smillert); 198b39c5158Smillert 199*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</"B<E<79>bject> E<77>ethods">\n}), 200898184e3Ssthen '<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>' 201b39c5158Smillert); 202*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</B<E<79>bject> E<77>ethods>\n}), 203898184e3Ssthen '<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>' 204b39c5158Smillert); 205*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<"B<E<79>bject> E<77>ethods">\n}), 206898184e3Ssthen '<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>' 207b39c5158Smillert); 208b39c5158Smillert 209b39c5158Smillert 210b39c5158Smillertprint "# Ents in the middle and at the start and at the end...\n"; 211b39c5158Smillert 212*5486feefSafresh1is($x->_out(qq{=pod\n\nL<E<78>et::PinE<103>>\n}), 213898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="E<78>et::PinE<103>" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>' 214b39c5158Smillert); 215*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<E<78>et::PinE<103>/Ping-B<E<112>onE<103>>>\n}), 216898184e3Ssthen '<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>' 217b39c5158Smillert); 218*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<E<78>et::PinE<103>/"Ping-B<E<112>onE<103>>">\n}), 219898184e3Ssthen '<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>' 220b39c5158Smillert); 221b39c5158Smillert 222*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</"B<E<79>bject> E<77>ethodE<115>">\n}), 223898184e3Ssthen '<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>' 224b39c5158Smillert); 225*5486feefSafresh1is( $x->_out(qq{=pod\n\nL</B<E<79>bject> E<77>ethodE<115>>\n}), 226898184e3Ssthen '<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>' 227b39c5158Smillert); 228*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<"B<E<79>bject> E<77>ethodE<115>">\n}), 229898184e3Ssthen '<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>' 230b39c5158Smillert); 231b39c5158Smillert 232b39c5158Smillert 233b39c5158Smillert########################################################################### 234b39c5158Smillert 235b39c5158Smillertprint "#\n# L<url> tests...\n"; 236b39c5158Smillert 237*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<news:comp.lang.perl.misc>\n}), 238898184e3Ssthen '<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>' 239b39c5158Smillert); 240*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<http://www.perl.com>\n}), 241898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="http://www.perl.com" to="http://www.perl.com" type="url">http://www.perl.com</L></Para></Document>' 242b39c5158Smillert); 243*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<http://www.perl.com/CPAN/authors/id/S/SB/SBURKE/>\n}), 244898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="http://www.perl.com/CPAN/authors/id/S/SB/SBURKE/" to="http://www.perl.com/CPAN/authors/id/S/SB/SBURKE/" type="url">http://www.perl.com/CPAN/authors/id/S/SB/SBURKE/</L></Para></Document>' 245b39c5158Smillert); 246b39c5158Smillert 247b39c5158Smillertprint "# L<url> tests with entities...\n"; 248b39c5158Smillert 249*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<news:compE<46>lang.perl.misc>\n}), 250898184e3Ssthen '<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>' 251b39c5158Smillert); 252*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<http://wwwE<46>perl.com>\n}), 253898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="http://wwwE<46>perl.com" to="http://www.perl.com" type="url">http://www.perl.com</L></Para></Document>' 254b39c5158Smillert); 255*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<http://wwwE<46>perl.com/CPAN/authors/id/S/SB/SBURKE/>\n}), 256898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="http://wwwE<46>perl.com/CPAN/authors/id/S/SB/SBURKE/" to="http://www.perl.com/CPAN/authors/id/S/SB/SBURKE/" type="url">http://www.perl.com/CPAN/authors/id/S/SB/SBURKE/</L></Para></Document>' 257b39c5158Smillert); 258*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<http://wwwE<46>perl.com/CPAN/authors/id/S/SB/SBURKEE<47>>\n}), 259898184e3Ssthen '<Document><Para><L content-implicit="yes" raw="http://wwwE<46>perl.com/CPAN/authors/id/S/SB/SBURKEE<47>" to="http://www.perl.com/CPAN/authors/id/S/SB/SBURKE/" type="url">http://www.perl.com/CPAN/authors/id/S/SB/SBURKE/</L></Para></Document>' 260b39c5158Smillert); 261b39c5158Smillert 262b39c5158Smillert 263b39c5158Smillert########################################################################### 264b39c5158Smillert 265b39c5158Smillert 266b39c5158Smillertprint "# L<text|stuff> tests...\n"; 267b39c5158Smillert 268*5486feefSafresh1is($x->_out(qq{=pod\n\nL<things|crontab(5)>\n}), 269898184e3Ssthen '<Document><Para><L raw="things|crontab(5)" to="crontab(5)" type="man">things</L></Para></Document>' 270b39c5158Smillert); 271*5486feefSafresh1is($x->_out(qq{=pod\n\nL<things|crontab(5)/ENVIRONMENT>\n}), 272898184e3Ssthen '<Document><Para><L raw="things|crontab(5)/ENVIRONMENT" section="ENVIRONMENT" to="crontab(5)" type="man">things</L></Para></Document>' 273b39c5158Smillert); 274*5486feefSafresh1is($x->_out(qq{=pod\n\nL<things|crontab(5)/"ENVIRONMENT">\n}), 275898184e3Ssthen '<Document><Para><L raw="things|crontab(5)/"ENVIRONMENT"" section="ENVIRONMENT" to="crontab(5)" type="man">things</L></Para></Document>' 276b39c5158Smillert); 277b39c5158Smillert 278*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Perl Error Messages|perldiag>\n}), 279898184e3Ssthen '<Document><Para><L raw="Perl Error Messages|perldiag" to="perldiag" type="pod">Perl Error Messages</L></Para></Document>' 280b39c5158Smillert); 281*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Perl\nError\nMessages|perldiag>\n}), 282898184e3Ssthen '<Document><Para><L raw="Perl Error Messages|perldiag" to="perldiag" type="pod">Perl Error Messages</L></Para></Document>' 283b39c5158Smillert); 284*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Perl\nError\t Messages|perldiag>\n}), 285898184e3Ssthen '<Document><Para><L raw="Perl Error Messages|perldiag" to="perldiag" type="pod">Perl Error Messages</L></Para></Document>' 286b39c5158Smillert); 287b39c5158Smillert 288b39c5158Smillert 289*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<SWITCH statements|perlsyn/"Basic BLOCKs and Switch Statements">\n}), 290898184e3Ssthen '<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>' 291b39c5158Smillert); 292*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<SWITCH statements|perlsyn/Basic BLOCKs and Switch Statements>\n}), 293898184e3Ssthen '<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>' 294b39c5158Smillert); 295b39c5158Smillert 296b39c5158Smillert 297*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<the various attributes|/"Member Data">\n}), 298898184e3Ssthen '<Document><Para><L raw="the various attributes|/"Member Data"" section="Member Data" type="pod">the various attributes</L></Para></Document>' 299b39c5158Smillert); 300*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<the various attributes|/Member Data>\n}), 301898184e3Ssthen '<Document><Para><L raw="the various attributes|/Member Data" section="Member Data" type="pod">the various attributes</L></Para></Document>' 302b39c5158Smillert); 303*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<the various attributes|"Member Data">\n}), 304898184e3Ssthen '<Document><Para><L raw="the various attributes|"Member Data"" section="Member Data" type="pod">the various attributes</L></Para></Document>' 305b39c5158Smillert); 306b39c5158Smillert 307b39c5158Smillert 308b39c5158Smillertprint "#\n# Now some very complex L<text|stuff> tests...\n"; 309b39c5158Smillert 310b39c5158Smillert 311*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Perl B<Error E<77>essages>|perldiag>\n}), 312898184e3Ssthen '<Document><Para><L raw="Perl B<Error E<77>essages>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L></Para></Document>' 313b39c5158Smillert); 314*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Perl\nB<Error\nE<77>essages>|perldiag>\n}), 315898184e3Ssthen '<Document><Para><L raw="Perl B<Error E<77>essages>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L></Para></Document>' 316b39c5158Smillert); 317*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<Perl\nB<Error\t E<77>essages>|perldiag>\n}), 318898184e3Ssthen '<Document><Para><L raw="Perl B<Error E<77>essages>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L></Para></Document>' 319b39c5158Smillert); 320b39c5158Smillert 321b39c5158Smillert 322*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<SWITCH B<E<115>tatements>|perlsyn/"Basic I<BLOCKs> and Switch StatementE<115>">\n}), 323898184e3Ssthen '<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>' 324b39c5158Smillert); 325*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<SWITCH B<E<115>tatements>|perlsyn/Basic I<BLOCKs> and Switch StatementE<115>>\n}), 326898184e3Ssthen '<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>' 327b39c5158Smillert); 328b39c5158Smillert 329b39c5158Smillert 330*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<the F<various> attributes|/"Member Data">\n}), 331898184e3Ssthen '<Document><Para><L raw="the F<various> attributes|/"Member Data"" section="Member Data" type="pod">the <F>various</F> attributes</L></Para></Document>' 332b39c5158Smillert); 333*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<the F<various> attributes|/Member Data>\n}), 334898184e3Ssthen '<Document><Para><L raw="the F<various> attributes|/Member Data" section="Member Data" type="pod">the <F>various</F> attributes</L></Para></Document>' 335b39c5158Smillert); 336*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<the F<various> attributes|"Member Data">\n}), 337898184e3Ssthen '<Document><Para><L raw="the F<various> attributes|"Member Data"" section="Member Data" type="pod">the <F>various</F> attributes</L></Para></Document>' 338b39c5158Smillert); 339b39c5158Smillert 340b39c5158Smillert 341b39c5158Smillertprint "#\n# Now some very complex L<text|stuff> tests with variant syntax...\n"; 342b39c5158Smillert 343b39c5158Smillert 344*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<< Perl B<<< Error E<77>essages >>>|perldiag >>\n}), 345898184e3Ssthen '<Document><Para><L raw="Perl B<<< Error E<77>essages >>>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L></Para></Document>' 346b39c5158Smillert); 347*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<< Perl\nB<<< Error\nE<77>essages >>>|perldiag >>\n}), 348898184e3Ssthen '<Document><Para><L raw="Perl B<<< Error E<77>essages >>>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L></Para></Document>' 349b39c5158Smillert); 350*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<< Perl\nB<<< Error\t E<77>essages >>>|perldiag >>\n}), 351898184e3Ssthen '<Document><Para><L raw="Perl B<<< Error E<77>essages >>>|perldiag" to="perldiag" type="pod">Perl <B>Error Messages</B></L></Para></Document>' 352b39c5158Smillert); 353b39c5158Smillert 354b39c5158Smillert 355*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<< SWITCH B<<< E<115>tatements >>>|perlsyn/"Basic I<<<< BLOCKs >>>> and Switch StatementE<115>" >>\n}), 356898184e3Ssthen '<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>' 357b39c5158Smillert); 358*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<< SWITCH B<<< E<115>tatements >>>|perlsyn/Basic I<<<< BLOCKs >>>> and Switch StatementE<115> >>\n}), 359898184e3Ssthen '<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>' 360b39c5158Smillert); 361b39c5158Smillert 362b39c5158Smillert 363*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<<< the F<< various >> attributes|/"Member Data" >>>\n}), 364898184e3Ssthen '<Document><Para><L raw="the F<< various >> attributes|/"Member Data"" section="Member Data" type="pod">the <F>various</F> attributes</L></Para></Document>' 365b39c5158Smillert); 366*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<<< the F<< various >> attributes|/Member Data >>>\n}), 367898184e3Ssthen '<Document><Para><L raw="the F<< various >> attributes|/Member Data" section="Member Data" type="pod">the <F>various</F> attributes</L></Para></Document>' 368b39c5158Smillert); 369*5486feefSafresh1is( $x->_out(qq{=pod\n\nL<<< the F<< various >> attributes|"Member Data" >>>\n}), 370898184e3Ssthen '<Document><Para><L raw="the F<< various >> attributes|"Member Data"" section="Member Data" type="pod">the <F>various</F> attributes</L></Para></Document>' 371b39c5158Smillert); 372b39c5158Smillert 373b39c5158Smillert########################################################################### 374b39c5158Smillert 375b39c5158Smillertprint "#\n# Now some very complex L<text|stuff> tests with variant syntax and text around it...\n"; 376b39c5158Smillert 377b39c5158Smillert 378*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<< Perl B<<< Error E<77>essages >>>|perldiag >>.\n}), 379898184e3Ssthen '<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>' 380b39c5158Smillert); 381*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<< Perl\nB<<< Error\nE<77>essages >>>|perldiag >>.\n}), 382898184e3Ssthen '<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>' 383b39c5158Smillert); 384*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<< Perl\nB<<< Error\t E<77>essages >>>|perldiag >>.\n}), 385898184e3Ssthen '<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>' 386b39c5158Smillert); 387b39c5158Smillert 388b39c5158Smillert 389*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<< SWITCH B<<< E<115>tatements >>>|perlsyn/"Basic I<<<< BLOCKs >>>> and Switch StatementE<115>" >>.\n}), 390898184e3Ssthen '<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>' 391b39c5158Smillert); 392*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<< SWITCH B<<< E<115>tatements >>>|perlsyn/Basic I<<<< BLOCKs >>>> and Switch StatementE<115> >>.\n}), 393898184e3Ssthen '<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>' 394b39c5158Smillert); 395b39c5158Smillert 396b39c5158Smillert 397*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<<< the F<< various >> attributes|/"Member Data" >>>.\n}), 398898184e3Ssthen '<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>' 399b39c5158Smillert); 400*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<<< the F<< various >> attributes|/Member Data >>>.\n}), 401898184e3Ssthen '<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>' 402b39c5158Smillert); 403*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<<< the F<< various >> attributes|"Member Data" >>>.\n}), 404898184e3Ssthen '<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>' 405b39c5158Smillert); 406b39c5158Smillert 407*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<<< B<text>s|http://text.com >>>.\n}), 408898184e3Ssthen'<Document><Para>I like <L raw="B<text>s|http://text.com" to="http://text.com" type="url"><B>text</B>s</L>.</Para></Document>' 409b39c5158Smillert); 410*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<<< text|https://text.com/1/2 >>>.\n}), 411898184e3Ssthen'<Document><Para>I like <L raw="text|https://text.com/1/2" to="https://text.com/1/2" type="url">text</L>.</Para></Document>' 412b39c5158Smillert); 413*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<<< I<text>|http://text.com >>>.\n}), 414898184e3Ssthen'<Document><Para>I like <L raw="I<text>|http://text.com" to="http://text.com" type="url"><I>text</I></L>.</Para></Document>' 415b39c5158Smillert); 416*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<<< C<text>|http://text.com >>>.\n}), 417898184e3Ssthen'<Document><Para>I like <L raw="C<text>|http://text.com" to="http://text.com" type="url"><C>text</C></L>.</Para></Document>' 418b39c5158Smillert); 419*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<<< I<tI<eI<xI<t>>>>|mailto:earlE<64>text.com >>>.\n}), 420898184e3Ssthen'<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>' 421b39c5158Smillert); 422*5486feefSafresh1is( $x->_out(qq{=pod\n\nI like L<<< textZ<>|http://text.com >>>.\n}), 423898184e3Ssthen'<Document><Para>I like <L raw="textZ<>|http://text.com" to="http://text.com" type="url">text</L>.</Para></Document>' 424b39c5158Smillert); 425b39c5158Smillert 426b39c5158Smillert 427b39c5158Smillert 428b39c5158Smillert 429b39c5158Smillert# 430b39c5158Smillert# TODO: S testing. 431b39c5158Smillert# 432