X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Frgit.git;a=blobdiff_plain;f=t%2F20-each.t;h=23692aa1d67c0cf84214fdaccfa558509765c686;hp=55e70855effbfc245c02258fa2632b0e77d06126;hb=9fa7664e0c86c59b5f9a2a03fa499c875722eaf0;hpb=eacacb3b45dddfcf7730aac933c0c85df73dbb18 diff --git a/t/20-each.t b/t/20-each.t index 55e7085..23692aa 100644 --- a/t/20-each.t +++ b/t/20-each.t @@ -7,7 +7,7 @@ use Cwd qw/cwd abs_path/; use File::Spec::Functions qw/catdir catfile/; use File::Temp qw/tempfile tempdir/; -use Test::More tests => 2 + 2 * 4 + 11 * (3 + 1 + 3 + 6); +use Test::More tests => 2 + 2 * 4 + 12 * (3 + 1 + 3 + 6); use App::Rgit::Utils qw/:codes/; use App::Rgit; @@ -89,7 +89,7 @@ is(grep({ ref eq 'ARRAY' } @expected), 3, 'all of them are array references'); @$_, map({ catdir($tmpdir, $_) } @{$_}[1 .. 3]), $tmpdir, - '^n' + '^n', '^x' ], @expected; sub try { @@ -99,7 +99,7 @@ sub try { git => abs_path('t/bin/git'), root => $tmpdir, cmd => $cmd, - args => [ abs_path($filename), $cmd, qw/^n ^g ^w ^b ^G ^W ^B ^R ^^n/ ], + args => [ abs_path($filename), $cmd, qw/^n ^g ^w ^b ^G ^W ^B ^R ^^n ^x/ ], policy => $policy, ); isnt($ar, undef, "each $cmd has a defined object"); @@ -122,7 +122,7 @@ SKIP: { skip 'didn\'t visited that repo' => 10 unless defined $r; is($r->[$_], $e->[$_], "each $cmd argument $_ for repository $i is ok") - for 0 .. 9; + for 0 .. 10; } } }