Skip to content

Commit

Permalink
Add test for RT #123506
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Oct 30, 2016
1 parent 2292a45 commit fc9a4a8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S04-statements/for.t
Expand Up @@ -4,7 +4,7 @@ use MONKEY-TYPING;

use Test;

plan 100;
plan 102;

=begin description
Expand Down Expand Up @@ -559,6 +559,14 @@ lives-ok {
is ~@s, '4 6 8 10', 'Can use statement-modifying "for" in list comprehension';
}

# RT #123506
{
my \rt123506a = ($_ for ^1);
is ~rt123506a, '0', 'assigning list comprehension to sigilless works (1)';
my \rt123506b = ($_ for ^2);
is ~rt123506b, '0 1', 'assigning list comprehension to sigilless works (2)';
}

# RT #113026
#?niecza todo 'array iterator does not track a growing array'
{
Expand Down

0 comments on commit fc9a4a8

Please sign in to comment.