Skip to content

Commit

Permalink
Test infix:<x> does not silence Failures
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Oct 16, 2016
1 parent 47aba2d commit df528f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S03-operators/repeat.t
Expand Up @@ -8,7 +8,7 @@ Repeat operators for strings and lists
=end description

plan 52;
plan 54;

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

Expand Down Expand Up @@ -171,4 +171,10 @@ is ((2, 4, 6).Seq xx *)[^2], ((2, 4, 6), (2, 4, 6)),
'(& xx Num) works as & xx Int';
}

# RT 129899
{
throws-like { 'a' x 'b' }, X::Str::Numeric, 'x does not silence failures';
is-deeply 'a' x Int, '', 'type objects get interpreted as 0 iterations';
}

# vim: ft=perl6

0 comments on commit df528f7

Please sign in to comment.