Skip to content

Commit

Permalink
Tweak test to work even when we find error at compile time
Browse files Browse the repository at this point in the history
The test assumes the dispatch failure will only ever going to
be detected at runtime, but we're now smart enough to detect
it at compile time.

Fix the test by using eval-dies-ok instead of just dies-ok.
  • Loading branch information
zoffixznet committed Apr 21, 2018
1 parent 16594c6 commit bae723c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S06-signature/unspecified.t
Expand Up @@ -29,7 +29,7 @@ is &named.signature.perl, ':(*%_)',
'signature is :(Mu *%_) when none is specified and %_ is used, RT #125486';
is named( :bravo<charlie> ), 'charlie', 'can call sub with named param used';
nok named().defined, 'named param sub is callable with no params';
dies-ok { named( 'zulu' ) }, 'named param sub dies with positional param';
eval-dies-ok named( 'zulu' ), 'named param sub dies with positional param';

sub both { @_[1] ~ %_<delta> }
is &both.signature.perl, ':(*@_, *%_)',
Expand Down

0 comments on commit bae723c

Please sign in to comment.