Skip to content

Commit 9b51e66

Browse files
committed
Test … op does not prematurely cause consumtion of Seqs
Bug find: https://irclog.perlgeek.de/perl6/2018-04-18#i_16061511 Rakudo fix: rakudo/rakudo@9e6ae276a9
1 parent 9a6b6b6 commit 9b51e66

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

S03-sequence/misc.t

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use v6;
22
use Test;
3-
plan 30;
3+
plan 31;
44

55
is ("fom" ... /foo/), "fom fon foo", "can use regex for endpoint without it being confused for closure";
66

@@ -127,4 +127,7 @@ is (1, { $^n*2 + 1 } ... 31, *+5 ... { $^n**2 > 2000 }, 'a', *~'z' ... { $_.char
127127
is identity-matrix(5).perl, [[1,0,0,0,0], [0,1,0,0,0], [0,0,1,0,0], [0,0,0,1,0], [0,0,0,0,1]].perl, "code endpoint protects item";
128128
}
129129

130+
is-deeply (<a b c>, *.reverse ... *)[5], <c b a>.Seq,
131+
'… op does not prematurely cause consumtion of Seqs';
132+
130133
# vim: ft=perl6

0 commit comments

Comments
 (0)