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

📄 prove-globbing.t

📁 source of perl for linux application,
💻 T
字号:
BEGIN {    if( $ENV{PERL_CORE} ) {        chdir 't';        @INC = ('../lib', 'lib');    }    else {        unshift @INC, 't/lib';    }}use strict;use File::Spec;use Test::More;plan skip_all => "Not adapted to perl core" if $ENV{PERL_CORE};plan skip_all => "Not installing prove" if -e "t/SKIP-PROVE";plan tests => 1;my $tests = File::Spec->catfile( 't', 'prove*.t' );my $prove = File::Spec->catfile( File::Spec->curdir, "blib", "script", "prove" );$prove = "$^X $prove";GLOBBAGE: {    my @actual = sort qx/$prove --dry $tests/;    chomp @actual;    my @expected = (        File::Spec->catfile( "t", "prove-globbing.t" ),        File::Spec->catfile( "t", "prove-switches.t" ),    );    is_deeply( \@actual, \@expected, "Expands the wildcards" );}

⌨️ 快捷键说明

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