Skip to content

Commit

Permalink
B::Deparse tests: turn on "switch" to test break() behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Jun 13, 2021
1 parent 8065350 commit 96f2357
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/B/Deparse-core.t
Expand Up @@ -87,6 +87,7 @@ sub testit {
no strict 'vars';
$code = "sub { state sub $keyword; ${vars}() = $expr }";
$code = "use feature 'isa';\n$code" if $keyword eq "isa";
$code = "use feature 'switch';\n$code" if $keyword eq "break";
$code_ref = eval $code or die "$@ in $expr";
}
else {
Expand All @@ -96,6 +97,7 @@ sub testit {
import subs $keyword;
$code = "no strict 'vars'; sub { ${vars}() = $expr }";
$code = "use feature 'isa';\n$code" if $keyword eq "isa";
$code = "use feature 'switch';\n$code" if $keyword eq "break";
$code_ref = eval $code or die "$@ in $expr";
}

Expand Down

0 comments on commit 96f2357

Please sign in to comment.