Skip to content

Commit 79f4e97

Browse files
committed
Test .is-lazy method on HyperSeq and RaceSeq
1 parent 1ee99db commit 79f4e97

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

S07-hyperrace/hyper.t

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

4-
plan 50;
4+
plan 51;
55

66
{
77
my @result = <a b c d e f g>.hyper.map({ $_.uc });
@@ -189,3 +189,5 @@ is (^100 .hyper.elems), 100, '.hyper.elems works';
189189
is (^1000).hyper.map(*+1).Seq.map(*+2).list, (3..1002).list,
190190
'Switching from hyper to sequential Seq does not break results or disorder';
191191
}
192+
193+
is (^1000).hyper.is-lazy, False, 'is-lazy on HyperSeq returns False';

S07-hyperrace/race.t

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

4-
plan 39;
4+
plan 40;
55

66
{
77
my @result = <a b c d e f g>.race.map({ $_.uc });
@@ -168,3 +168,5 @@ is (^100 .race.elems), 100, '.race.elems works';
168168
is (^1000).race.map(*+1).Seq.map(*+2).list.sort, (3..1002).list,
169169
'Switching from race to sequential Seq does not break results';
170170
}
171+
172+
is (^1000).race.is-lazy, False, 'is-lazy on RaceSeq returns False';

0 commit comments

Comments
 (0)