Skip to content

Commit 7d4092d

Browse files
committed
Test Seq.perl works on cached Seqs
RT#131222: https://rt.perl.org/Ticket/Display.html?id=131222 Rakudo fix: rakudo/rakudo@54f50956ad
1 parent 81170f3 commit 7d4092d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

S32-list/seq.t

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

4-
plan 35;
4+
plan 36;
55

66
my @result = 1,2,3;
77

@@ -142,3 +142,11 @@ is-deeply @searches[0].Array, @expected-searches, 'seq => array works 3';
142142
is $a, (1) xx 10, 'from-loop(&body, &condition, &afterward) terminates calling &body if &condition returns False';
143143
is $count, 10, '&afterward is called after each call to &body.';
144144
}
145+
146+
147+
# RT#131222
148+
with (1, 2).Seq {
149+
.cache; # Cache the seq
150+
is .perl, (1, 2).Seq.perl,
151+
'.perl on cached Seq does not think it was consumed';
152+
}

0 commit comments

Comments
 (0)