📄 fcodes_l.t
字号:
BEGIN { if($ENV{PERL_CORE}) { chdir 't'; @INC = '../lib'; }}use strict;use Test;BEGIN { plan tests => 93 };#use Pod::Simple::Debug (10);ok 1;use Pod::Simple::DumpAsXML;use Pod::Simple::XMLOutStream;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; # for predictably testable outputprint "# Simple/moderate L<stuff> tests...\n";ok($x->_out(qq{=pod\n\nL<Net::Ping>\n}), '<Document><Para><L content-implicit="yes" 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" to="crontab(5)" type="man">crontab(5)</L></Para></Document>');ok( $x->_out(qq{=pod\n\nL<Net::Ping/Ping-pong>\n}), '<Document><Para><L content-implicit="yes" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" to="Net::Ping" type="pod">Net::Ping</L></Para></Document>'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -