Skip to content

Commit

Permalink
Test xx not dying with large repetition count
Browse files Browse the repository at this point in the history
Closes RT#126014.
  • Loading branch information
AlexDaniel committed Apr 8, 2018
1 parent b477bee commit b320464
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S03-operators/repeat.t
Expand Up @@ -9,7 +9,7 @@ Repeat operators for strings and lists
=end description

plan 62;
plan 64;

#L<S03/Changes to Perl 5 operators/"x (which concatenates repetitions of a string to produce a single string">

Expand Down Expand Up @@ -213,4 +213,10 @@ is-deeply (|() xx *)[^5], (Nil, Nil, Nil, Nil, Nil),
is $z, 25, 'xx does not keep containers around';
}

# RT #130941

This comment has been minimized.

Copy link
@AlexDaniel

AlexDaniel Apr 8, 2018

Author Member

Oops. Fixed in 19344b3

{
lives-ok { 42 xx 9999999999 }, xx is indeed lazy (32-bit range);
lives-ok { 42 xx (2 ** 62) }, xx is indeed lazy (64-bit range);
}

# vim: ft=perl6

0 comments on commit b320464

Please sign in to comment.