Skip to content

Commit 0ce5f3f

Browse files
committed
'ABC'.ords xx 2 should not produce empty list
1 parent 8626cca commit 0ce5f3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

S03-operators/repeat.t

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Repeat operators for strings and lists
88
99
=end description
1010

11-
plan 32;
11+
plan 33;
1212

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

@@ -96,5 +96,8 @@ is($twin, 'LintillaLintilla', 'operator x= for string repeats correct');
9696
is @a[1][0], 'a', 'xx thunks the LHS';
9797
}
9898

99+
{
100+
is 'ABC'.ords xx 2, (65,66,67,65,66,67), "xx works on a lazy list";
101+
}
99102

100103
# vim: ft=perl6

0 commit comments

Comments
 (0)