plan.t

来自「source of perl for linux application,」· T 代码 · 共 22 行

T
22
字号
#!/usr/bin/perl -wBEGIN {    if( $ENV{PERL_CORE} ) {        chdir 't';        @INC = '../lib';    }}use Test::More;plan tests => 4;eval { plan tests => 4 };is( $@, sprintf("You tried to plan twice at %s line %d.\n", $0, __LINE__ - 1),    'disallow double plan' );eval { plan 'no_plan'  };is( $@, sprintf("You tried to plan twice at %s line %d.\n", $0, __LINE__ -1),    'disallow changing plan' );pass('Just testing plan()');pass('Testing it some more');

⌨️ 快捷键说明

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