File: code.t

package info (click to toggle)
ack-grep 1.96-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,060 kB
  • sloc: perl: 5,822; sh: 162; makefile: 21; ansic: 21; fortran: 11
file content (19 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!perl -Tw

use warnings;
use strict;

use Test::More;

my @files = ( qw( ack ack-base Ack.pm ), glob( 't/*.t' ) );

plan tests => scalar @files;

for my $file ( @files ) {
    local $/ = undef;
    open( my $fh, '<', $file ) or die "Can't read $file: \n";
    my $text = <$fh>;
    close $fh or die;

    is( index($text, "\t"), -1, "$file should have no embedded tabs" );
}