mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
28 lines
538 B
Perl
28 lines
538 B
Perl
#!/usr/bin/perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
eval "use Test::TrailingSpace";
|
|
if ($@)
|
|
{
|
|
plan skip_all => "Test::TrailingSpace required for trailing space test.";
|
|
}
|
|
else
|
|
{
|
|
plan tests => 1;
|
|
}
|
|
|
|
my $finder = Test::TrailingSpace->new(
|
|
{
|
|
root => '.',
|
|
filename_regex =>
|
|
qr/(?:(?:\.(?:bash|sh|t|pm|pl|PL|yml|json|arc|vim|html|py|tcl|xhtml))|README(?:[\.\w]*)|Changes|LICENSE|MANIFEST(?:\.in)?|AUTHORS|COPYING)\z/,
|
|
},
|
|
);
|
|
|
|
# TEST
|
|
$finder->no_trailing_space("No trailing space was found.");
|
|
|