📄 maketext_filter.t
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -