writeemptymakefile.t
来自「source of perl for linux application,」· T 代码 · 共 41 行
T
41 行
#!/usr/bin/perl -w# This is a test of WriteEmptyMakefile.BEGIN { if( $ENV{PERL_CORE} ) { chdir 't' if -d 't'; @INC = ('../lib', 'lib'); } else { unshift @INC, 't/lib'; }}chdir 't';use strict;use Test::More tests => 5;use ExtUtils::MakeMaker qw(WriteEmptyMakefile);use TieOut;can_ok __PACKAGE__, 'WriteEmptyMakefile';eval { WriteEmptyMakefile("something"); };like $@, qr/Need an even number of args/;{ ok( my $stdout = tie *STDOUT, 'TieOut' ); ok !-e 'wibble'; END { 1 while unlink 'wibble' } WriteEmptyMakefile( NAME => "Foo", FIRST_MAKEFILE => "wibble", ); ok -e 'wibble';}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?