Skip to content

Commit

Permalink
Unfudge passing test for RT #116178, add 2nd test
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed May 8, 2015
1 parent e9074a8 commit fdaa7dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion S03-operators/assign.t
Expand Up @@ -959,7 +959,6 @@ sub l () { 1, 2 };
}

# RT #116178
#?rakudo skip 'RT #116178'
{
my $x //= .uc for 'a';
is $x, 'A',
Expand Down
10 changes: 9 additions & 1 deletion S04-statement-modifiers/for.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 26;
plan 27;

# L<S04/"Conditional statements"/Conditional statement modifiers work as in Perl 5>

Expand Down Expand Up @@ -145,4 +145,12 @@ is ((sub r { "OH HAI" })() for 5), "OH HAI", 'Anon sub in statement modifier for
is @a, (0, 0, 1, 1), 'for thunk does not mess up statement modifier closures';
}

# RT #116178
{
my @a = <a b c>;
my %h;
%h{.value} //= .key for @a.pairs;
is %h, {:a(0), :b(1), :c(2)}, "default-assignment (//-) doesn't mix with implicit-variable method call";
}

# vim: ft=perl6

0 comments on commit fdaa7dc

Please sign in to comment.