Skip to content

Commit

Permalink
Don't use a CachedIterator in the skip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jun 12, 2019
1 parent 0490392 commit 63116a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions S32-list/skip.t
Expand Up @@ -117,7 +117,7 @@ subtest 'Seq.skip does not leave original Seq consumable' => {

subtest 'uncached, .skip()' => {
plan 2;
my $s := (1, 2, 3).Seq;
my $s := (1..3).Seq;
my $skipped := $s.skip;

throws-like { @$s }, X::Seq::Consumed, 'original got consumed';
Expand All @@ -126,7 +126,7 @@ subtest 'Seq.skip does not leave original Seq consumable' => {

subtest 'uncached, .skip(n)' => {
plan 2;
my $s := (1, 2, 3).Seq;
my $s := (1..3).Seq;
my $skipped := $s.skip: 2;

throws-like { @$s }, X::Seq::Consumed, 'original got consumed';
Expand All @@ -135,7 +135,7 @@ subtest 'Seq.skip does not leave original Seq consumable' => {

subtest 'cached, .skip()' => {
plan 2;
my $s := (1, 2, 3).Seq;
my $s := (1..3).Seq;
$s.cache;
my $skipped := $s.skip;

Expand All @@ -145,7 +145,7 @@ subtest 'Seq.skip does not leave original Seq consumable' => {

subtest 'cached, .skip(n)' => {
plan 2;
my $s := (1, 2, 3).Seq;
my $s := (1..3).Seq;
$s.cache;
my $skipped := $s.skip: 2;

Expand Down

0 comments on commit 63116a9

Please sign in to comment.