You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The results of these tests should be reversed, the eval-dies-ok succeeding and eval-lives-ok failing:
zoffix@leliana:/tmp/tmp.0dxxAHGdyB$ perl6 -e 'm: use Test; sub say {die $^a}; eval-dies-ok "say 42"'
42
not ok 1 -
# Failed test at -e line 1
zoffix@leliana:/tmp/tmp.0dxxAHGdyB$ perl6 -e 'm: use Test; sub say {die $^a}; eval-lives-ok "say 42"'
42
ok 1 -
zoffix@leliana:/tmp/tmp.0dxxAHGdyB$
The reason is the code is EVALED in the context of Test.pm6 and not the current code. Compare that to the current implementation of throws-like, which does use current context.
Migrated from rt.perl.org#128417 (status was 'rejected')
Searchable as RT128417$
The text was updated successfully, but these errors were encountered: