Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (29 sloc) 0.715 kB
#!perl
use warnings;
use strict;
use Test::More tests => 4;
use App::Ack ();
use File::Next ();
use lib 't';
use Util;
prep_environment();
ACK_F: {
my @expected = qw(
t/etc/shebang.empty.xxx
t/swamp/moose-andy.jpg
t/swamp/perl.tar.gz
);
my @files = qw( t );
my @args = qw( -f --binary );
my @results = run_ack( @args, @files );
sets_match( \@results, \@expected, 'Looking for binary' );
}
ACK_BINARY: {
my @expected = (
'Binary file t/swamp/moose-andy.jpg matches',
);
my @files = qw( t/swamp );
my @args = qw( -a sRGB );
my @results = run_ack( @args, @files );
lists_match( \@results, \@expected, 'Looking for binary' );
}
Jump to Line
Something went wrong with that request. Please try again.