Skip to content

Commit 1923cac

Browse files
author
Jan-Olof Hendig
committed
Add test for RT #131018
1 parent 9f304b0 commit 1923cac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

S32-list/rotor.t

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 14;
4+
plan 15;
55

66
#?DOES 1
77
sub r(\pos, $expected, $descr? is copy, *%named) {
@@ -52,3 +52,8 @@ is-deeply (gather do for ^2 { "x".take }).rotor(3, :partial).eager, (<x x>,),
5252
is-deeply <a b c d e f>.rotor(1...*),
5353
(("a",), ("b", "c"), ("d", "e", "f")).Seq,
5454
'.rotor does not hang when given infinite iterable as cycle';
55+
56+
# RT #131018
57+
is-deeply <a b c d e f>.rotor(2 => -2, 1),
58+
(("a", "b"), ("a",), ("b", "c"), ("b",), ("c", "d"), ("c",), ("d", "e"), ("d",), ("e", "f"), ("e",)),
59+
".rotor works as expected with negative gap";

0 commit comments

Comments
 (0)