Skip to content

Commit b8889f7

Browse files
zoffixznetAlexDaniel
authored andcommitted
Tweak test to work even when we find error at compile time
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.
1 parent 7dc87a9 commit b8889f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S06-signature/unspecified.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ is &named.signature.perl, ':(*%_)',
2929
'signature is :(Mu *%_) when none is specified and %_ is used, RT #125486';
3030
is named( :bravo<charlie> ), 'charlie', 'can call sub with named param used';
3131
nok named().defined, 'named param sub is callable with no params';
32-
dies-ok { named( 'zulu' ) }, 'named param sub dies with positional param';
32+
eval-dies-ok named( 'zulu' ), 'named param sub dies with positional param';
3333

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

0 commit comments

Comments
 (0)