6
unless ( $ENV{DISPLAY} or $^O eq 'MSWin32' ) {
7
plan skip_all => 'Needs DISPLAY';
12
# Checks for UNIX end of lines (aka newlines)
15
use Padre::Util qw(newline_type);
18
File::Find::Rule->file->name( '*.pm', '*.pod', '*.pl', '*.p6', '*.t', '*.yml', '*.txt' )->in( 'lib', 't', 'share' );
19
@files = ( @files, 'Artistic', 'COPYING', 'Makefile.PL', 'Changes', 'padre.yml' );
21
plan( tests => scalar @files );
22
foreach my $file (@files) {
23
my $eol = newline_type( slurp($file) );
24
ok( ( $eol eq 'UNIX' ) || ( $eol eq 'None' ), "$file has UNIX-EOLs or none" );
27
######################################################################
32
open my $fh, '<', $file or die $!;