Skip to content

Commit

Permalink
Add test for RT #125401
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Oct 24, 2015
1 parent 0e4520a commit de87d79
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S04-statements/gather.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 33;
plan 34;

# L<S04/The C<gather> statement prefix/>

Expand Down Expand Up @@ -265,4 +265,11 @@ plan 33;
'"INIT take" inside of a "gather for" fails with X::ControlFlow';
}

# RT #125401
{
my @result = flat gather { take "foo=bar".split("=") };
is @result, <foo bar>,
'take on a listy expression takes each element of that list';
}

# vim: ft=perl6

0 comments on commit de87d79

Please sign in to comment.