📄 03_spaces.t
字号:
#!/usr/bin/perl -w# DESCRIPTION: Perl ExtUtils: Type 'make test' to test this package## Copyright 2007-2009 by Wilson Snyder. This program is free software;# you can redistribute it and/or modify it under the terms of either the GNU# Lesser General Public License or the Perl Artistic License.use strict;use Test;BEGIN { require "t/test_utils.pl"; }eval { use ExtUtils::Manifest; };my $manifest = ExtUtils::Manifest::maniread();plan tests => (1 + (keys %{$manifest}));ok(1);foreach my $filename (keys %{$manifest}) { if ($filename =~ /README/) { # May not even exist skip("File doesn't need check (harmless)",1); next; } print "Space test of: $filename\n"; my $wholefile = wholefile($filename); if ($wholefile && $wholefile !~ /[ \t]+\n/ && $wholefile !~ /^[ \t]*[ ]+\t/) { ok(1); } elsif ($filename =~ m!\.out!) { skip("File doesn't need check (harmless)",1); } elsif (!$ENV{VERILATOR_AUTHOR_SITE}) { skip("author only test (harmless)",1); } else { warn "%Error: $filename: Bad indentation\n"; ok(0); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -