Skip to content

Commit

Permalink
Test we can partial rotor a gather/take Seq
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Feb 10, 2017
1 parent 608848d commit 52668af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S32-list/rotor.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 12;
plan 13;

#?DOES 1
sub r(\pos, $expected, $descr? is copy, *%named) {
Expand Down Expand Up @@ -43,3 +43,7 @@ subtest 'non-Int numerals as arguments to rotor get coersed to Int' => {

# RT #130283
is-deeply ().rotor(1), ().Seq, '.rotor on empty list gives empty Seq';

# RT #130725
is-deeply (gather do for ^2 { "x".take }).rotor(3, :partial).eager, (<x x>,),
".rotor(:partial) works with gather/take";

0 comments on commit 52668af

Please sign in to comment.