Skip to content

Commit

Permalink
Change two 'dies-ok' to 'throws-like'
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Jun 18, 2015
1 parent 841ebd8 commit 3192739
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions S06-advanced/lexical-subs.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ plan 11;
my sub g(){"g"}; my sub h(){g()}; h();
};
is(f(), 'g', 'can indirectly call lexical sub');
eval-dies-ok('g', 'lexical sub not visible outside current scope');
throws-like 'g', X::Undeclared::Symbols,
'lexical sub not visible outside current scope';
}

{
Expand Down Expand Up @@ -64,7 +65,7 @@ plan 11;

# RT #57788
{
eval-dies-ok 'sub a { }; sub a { }';
throws-like 'sub a { }; sub a { }', X::Redeclaration;
}

# vim: ft=perl6 :

0 comments on commit 3192739

Please sign in to comment.