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

📄 filter_only.t

📁 source of perl for linux application,
💻 T
字号:
BEGIN {    if( $ENV{PERL_CORE} ) {        chdir 't';        @INC = ('../lib', 'lib');    }    else {        unshift @INC, 't/lib/';    }}chdir 't';use Filter::Simple::FilterOnlyTest qr/not ok/ => "ok",                                    "bad" => "ok", fail => "die";print "1..9\n";sub fail { print "ok ", $_[0], "\n" }sub ok { print "ok ", $_[0], "\n" }print "not ok 1\n";print "bad 2\n";fail(3);&fail(4);print "not " unless "whatnot okapi" eq "whatokapi";print "ok 5\n";ok 7 unless not ok 6;no Filter::Simple::FilterOnlyTest; # THE FUN STOPS HEREprint "not " unless "not ok" =~ /^not /;print "ok 8\n";print "not " unless "bad" =~ /bad/;print "ok 9\n";

⌨️ 快捷键说明

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