Skip to content

Commit

Permalink
Further fix supporting test code
Browse files Browse the repository at this point in the history
The problem that original fix[^1] was trying to defensively account for
actually already exists in `&take` calls that aren't a last statement
of a `for` loop and the Seq gets sunk, exploding the test.

[1] a8d6091
  • Loading branch information
zoffixznet committed Feb 26, 2018
1 parent a8d6091 commit be73087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S03-operators/repeat.t
Expand Up @@ -199,7 +199,7 @@ is-deeply (|() xx *)[^5], (Nil, Nil, Nil, Nil, Nil),
# RT #121327
{
my @result = gather {
for ^2 { my @b = 1 xx 4; take (@b.shift xx 2) xx 2; Nil }
for ^2 { my @b = 1 xx 4; my $ = take (@b.shift xx 2) xx 2; Nil }
}
is-deeply @result.map(*.list).list, (((1, 1), (1, 1)), ((1, 1), (1, 1))),
'Nested xx in for-loop';
Expand Down

0 comments on commit be73087

Please sign in to comment.