⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 html01.t

📁 source of perl for linux application,
💻 T
字号:
# t/html-para.tBEGIN {    if($ENV{PERL_CORE}) {        chdir 't';        @INC = '../lib';    }}use strict;use Test;BEGIN { plan tests => 8 };#use Pod::Simple::Debug (10);use Pod::Simple::HTML;sub x ($) { Pod::Simple::HTML->_out(  sub{  $_[0]->bare_output(1)  },  "=pod\n\n$_[0]",) }ok( x(q{=pod This is a paragraph =cut}),  qq{\n<p>This is a paragraph</p>\n},  "paragraph building");ok( x(qq{=pod\n\nThis is a paragraph}), qq{\n<p>This is a paragraph</p>\n}, "paragraph building");ok( x(qq{This is a paragraph}), qq{\n<p>This is a paragraph</p>\n}, "paragraph building");ok(x('=head1 This is a heading') => q{/\s*<h1><a[^<>]+>This\s+is\s+a\s+heading</a></h1>\s*$/},  "heading building");ok(x('=head2 This is a heading too') => q{/\s*<h2><a[^<>]+>This\s+is\s+a\s+heading\s+too</a></h2>\s*$/},  "heading building");ok(x('=head3 Also, this is a heading') => q{/\s*<h3><a[^<>]+>Also,\s+this\s+is\s+a\s+heading</a></h3>\s*$/},  "heading building");ok(x('=head4 This, too, is a heading') => q{/\s*<h4><a[^<>]+>This,\s+too,\s+is\s+a\s+heading</a></h4>\s*$/},  "heading building");print "# And one for the road...\n";ok 1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -