📄 win32core.t
字号:
#!perluse Test::More;BEGIN { if ( $ENV{PERL_CORE} ) { require Config; if ( $Config::Config{extensions} !~ /(?<!\S)Win32CORE(?!\S)/ ) { plan skip_all => "Win32CORE extension not built"; exit(); } } if ($^O eq 'cygwin') { plan skip_all => '$^E is not Win32::GetLastError() under Cygwin'; } else { plan tests => 4; }};use_ok( "Win32CORE" );# Make sure that Win32 is not yet loadedok(!defined &Win32::ExpandEnvironmentStrings);# [perl #42925] - Loading Win32::GetLastError() via the forwarder function# should not affect the last error being retrieved$^E = 42;is(Win32::GetLastError(), 42, 'GetLastError() works on the first call');# Now all Win32::* functions should be loadedok(defined &Win32::ExpandEnvironmentStrings);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -