Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
skip code that tries to "use v5"
  • Loading branch information
FROGGS committed May 18, 2014
1 parent 064ab9a commit 09d0bc5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions S01-perl-5-integration/basic.t
Expand Up @@ -121,14 +121,16 @@ my $s = 'str';
is($result,4,$test);
}

sub add_in_perl5 ($x, $y) {
use v5;
$x + $y;
}

eval_lives_ok("{use v5;}", "RT #77596 - use v5 in a block lives");
#?rakudo 2 skip 'v5 is not in core (yet)'
{
sub add_in_perl5 ($x, $y) {
use v5;
$x + $y;
}

is(add_in_perl5(42, 42), 84, 'Defining subroutines with "use v5" blocks');
eval_lives_ok("{use v5;}", "RT #77596 - use v5 in a block lives");

is(add_in_perl5(42, 42), 84, 'Defining subroutines with "use v5" blocks');
}

# vim: ft=perl6

0 comments on commit 09d0bc5

Please sign in to comment.