Skip to content

Commit

Permalink
Merge pull request #2 from everybody/master
Browse files Browse the repository at this point in the history
fix typo in function call
  • Loading branch information
mgruberman committed Mar 12, 2012
2 parents b507091 + b6cf69c commit 301cc27
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/B/Utils.pm
Expand Up @@ -703,7 +703,7 @@ Same as above, but filtered.
sub walkallops_filtered {
$sub = undef;

&_walkallops_filterd;
&_walkallops_filtered;

return _TRUE;
}
Expand Down
22 changes: 22 additions & 0 deletions t/regression_walkallops_filtered.t
@@ -0,0 +1,22 @@
use strict;
use warnings;

use Test::Exception tests => 1;

use B::Utils qw( walkallops_filtered opgrep );

lives_ok {
walkallops_filtered(
sub { opgrep( {name => "exec",
next => {
name => "nextstate",
sibling => { name => [qw(! exit warn die)] }
}
}, @_)},
sub {
warn("Statement unlikely to be reached");
warn("\t(Maybe you meant system() when you said exec()?)\n");
}
)
} 'walkallops_filtered should not die when called as documented';

0 comments on commit 301cc27

Please sign in to comment.