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

📄 plan_no_plan.t

📁 SinFP是一种新的识别对方计算机操作系统类型的工具
💻 T
字号:
BEGIN {    if( $ENV{PERL_CORE} ) {        chdir 't';        @INC = '../lib';    }}use Test::More;BEGIN {    if( !$ENV{HARNESS_ACTIVE} && $ENV{PERL_CORE} ) {        plan skip_all => "Won't work with t/TEST";    }}plan 'no_plan';pass('Just testing');ok(1, 'Testing again');{    my $warning = '';    local $SIG{__WARN__} = sub { $warning = join "", @_ };    SKIP: {        skip 'Just testing skip with no_plan';        fail("So very failed");    }    is( $warning, '', 'skip with no "how_many" ok with no_plan' );    $warning = '';    TODO: {        todo_skip "Just testing todo_skip";        fail("Just testing todo");        die "todo_skip should prevent this";        pass("Again");    }    is( $warning, '', 'skip with no "how_many" ok with no_plan' );}

⌨️ 快捷键说明

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