Add 'no_test' import option to allow more composability
[catagits/Test-EOL.git] / t / 12-fail.t
index 78238be..a311f4d 100644 (file)
@@ -13,7 +13,7 @@ $inc = "-I $inc" if $inc;
     open my $fh, '<', $filename or die $!;
     binmode( $fh, ':raw' );
     my $content = <$fh>;
-    is( $content, ascii_string(), 'Data written to file is there when we look for it later' ); 
+    is( $content, ascii_string(), 'Data written to file is there when we look for it later' );
 
 }
 {
@@ -31,7 +31,7 @@ $inc = "-I $inc" if $inc;
 {
     my ($dir, $file) = make_bad_file_3();
     run_ok( "all_perl_files_ok( '$file' )",
-            qr/^not ok 1 - No incorrect line endings in '[^']*' \Qon line 9: [\r][\r][\r]/m,
+            qr/^not ok 1 - No incorrect line endings in '[^']*' \Qon line 1: [\r] /m,
             'windows EOL found in tmp file 3' );
 }
 
@@ -57,14 +57,14 @@ sub run_ok {
     unlink $outfile;
 }
 
-sub ascii_string { 
+sub ascii_string {
   my $o = "<before \r\n between \r\n after \n normal >";
   return $o x 3;
 }
 
-sub make_raw_badfile { 
-  my $tmpdir = tempdir( CLEANUP => 1 ); 
-  my ( $fh, $filename ) = tempfile( DIR => $tmpdir, SUFFIX =>  '.tXt' ); 
+sub make_raw_badfile {
+  my $tmpdir = tempdir( CLEANUP => 1 );
+  my ( $fh, $filename ) = tempfile( DIR => $tmpdir, SUFFIX =>  '.tXt' );
   binmode $fh, ':raw';
   print $fh ascii_string();
   close $fh;
@@ -124,8 +124,8 @@ sub new {\r
     my (\$class) = \@_;\r
     my \$self = bless { }, \$class;\r
     return \$self;\r
-}\r\r\r\r
-
+}\r
+\r
 \r
 1;\r
 DUMMY