Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #114670, "str" x Int
  • Loading branch information
moritz committed Jan 4, 2013
1 parent 1c992e3 commit 096b88b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S03-operators/repeat.t
Expand Up @@ -8,7 +8,7 @@ Repeat operators for strings and lists
=end description

plan 31;
plan 32;

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

Expand All @@ -19,6 +19,8 @@ is('' x 6, '', 'repeating an empty string creates an empty string');
is('a' x 0, '', 'repeating zero times produces an empty string');
is('a' x -1, '', 'repeating negative times produces an empty string');
is 'a' x 2.2, 'aa', 'repeating with a fractional number coerces to Int';
# RT #114670
is 'str' x Int, '', 'x with Int type object';

#L<S03/Changes to Perl 5 operators/"and xx (which creates a list of repetitions of a list or item)">
my @foo = 'x' xx 10;
Expand Down

0 comments on commit 096b88b

Please sign in to comment.