Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix and unfudge phaser r-value tests.
Correct a mis-paren'd eval call, and correct a test that had wrong
expectations about containers.
  • Loading branch information
jnthn committed Nov 5, 2012
1 parent a2adec0 commit 1d5f961
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions S04-phasers/rvalue.t
Expand Up @@ -34,7 +34,6 @@ plan 16;
is $z, 'MOIN', 'can access built-in methods in BEGIN statement prefix';
}

#?rakudo skip 'lexicals in phasers'
{
my $hist = '';

Expand Down Expand Up @@ -70,7 +69,7 @@ plan 16;

my $begin_val;
my $begin = {
$begin_val = BEGIN { $hist ~= 'B' };
$begin_val = BEGIN { $hist ~= 'B'; 'B' };
}

#?niecza todo 'block returns no value'
Expand All @@ -82,7 +81,7 @@ plan 16;

# Test END {} as rval:
#?niecza skip 'Excess arguments to eval, used 1 of 2 positionals'
ok !eval 'my $end_val = END { 3 }', "END {} can't be used as a rvalue";
ok !eval('my $end_val = END { 3 }'), "END {} can't be used as a rvalue";
}

# vim: ft=perl6

0 comments on commit 1d5f961

Please sign in to comment.