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

📄 no_plan.t

📁 source of perl for linux application,
💻 T
字号:
#!/usr/bin/perl -wBEGIN {    if( $ENV{PERL_CORE} ) {        chdir 't';        @INC = ('../lib', 'lib');    }    else {        unshift @INC, 't/lib';    }}use Test::More tests => 6;my $tb = Test::Builder->create;$tb->level(0);#line 19ok !eval { $tb->plan(tests => undef) };is($@, "Got an undefined number of tests at $0 line 19.\n");#line 23ok !eval { $tb->plan(tests => 0) };is($@, "You said to run 0 tests at $0 line 23.\n");#line 27ok !eval { $tb->ok(1) };is( $@, "You tried to run a test without a plan at $0 line 27.\n");

⌨️ 快捷键说明

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