maketext_filter.t
来自「source of perl for linux application,」· T 代码 · 共 66 行
T
66 行
#!/usr/bin/perl -wBEGIN { if( $ENV{PERL_CORE} ) { chdir 't' if -d 't'; @INC = '../lib'; } else { unshift @INC, 't/lib'; }}chdir 't';use Test::More tests => 6;use ExtUtils::MakeMaker;use ExtUtils::MM_VMS;sub test_filter { my($text, $vms_text) = @_; local $Test::Builder::Level = $Test::Builder::Level + 1; is( ExtUtils::MM_Any->maketext_filter($text), $text, 'default filter' ); is( ExtUtils::MM_VMS->maketext_filter($text), $vms_text, 'VMS filter' );}# VMS filter puts a space after the targettest_filter(<<'END', <<'VMS');foo: bar thing: splatENDfoo : bar thing: splatVMS# And it does it for all targetstest_filter(<<'END', <<'VMS');foo: bar thing: splatup: down yesENDfoo : bar thing: splatup : down yesVMS# And it doesn't mess with macrostest_filter(<<'END', <<'VMS');CLASS=Foo: Bartarget: stuff $(PROGRAM) And::StuffENDCLASS=Foo: Bartarget : stuff $(PROGRAM) And::StuffVMS
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?