Skip to content

Commit

Permalink
Add tests for #121994
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed May 30, 2014
1 parent a5595df commit 6538a38
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion S02-types/lazy-lists.t
Expand Up @@ -15,7 +15,7 @@ use v6;

use Test;

plan 20;
plan 22;


#?pugs emit unless $?PUGS_BACKEND eq "BACKEND_PERL5" {
Expand Down Expand Up @@ -151,4 +151,14 @@ sub make-lazy-list($num) { gather { take $_ for 0..^$num; $was-lazy = 0 } };
ok $was-lazy, "first argument of X~ is lazy";
}

# RT121994
{
my @a;
@a.push: $("one,two,three".split(","));
is_deeply @a, [(<one two three>).list.item], "push: did we not lose the split?";
my @b;
@b.unshift: $("one,two,three".split(","));
is_deeply @b, [(<one two three>).list.item], "unshift: did we not lose the split?";
}

# vim: ft=perl6

0 comments on commit 6538a38

Please sign in to comment.