Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from everybody/master
fix typo in function call
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'; | ||
|