@@ -6,7 +6,7 @@ use Test::Tap;
6
6
my @ source = <old dog jumpso >;
7
7
my @ schedulers = ThreadPoolScheduler . new , CurrentThreadScheduler ;
8
8
9
- plan @ schedulers * 13 ;
9
+ plan @ schedulers * 16 ;
10
10
11
11
for @ schedulers -> $ * SCHEDULER {
12
12
diag " **** scheduling with { $ * SCHEDULER . WHAT . raku} " ;
@@ -17,9 +17,11 @@ for @schedulers -> $*SCHEDULER {
17
17
" comb a simple list of words with { c. raku. substr (1 )} " ;
18
18
}
19
19
20
- tap-ok Supply . from-list(@ source ). comb (2 ),
21
- [<ol dd og ju mp so >],
22
- " comb a simple list of words for 2 chars at a time exactly" ;
20
+ for \(2 ), \(/.. /) -> \c {
21
+ tap-ok Supply . from-list(@ source ). comb (| c),
22
+ [<ol dd og ju mp so >],
23
+ " comb a simple list of words with { c. raku. substr (1 )} " ;
24
+ }
23
25
24
26
tap-ok Supply . from-list(@ source ). comb (2 ,2 ),
25
27
[<ol dd >],
@@ -31,19 +33,29 @@ for @schedulers -> $*SCHEDULER {
31
33
" comb a simple list of words with { c. raku. substr (1 )} " ;
32
34
}
33
35
34
- tap-ok Supply . from-list(@ source ). comb (20 ),
35
- [' olddogjumpso' ],
36
- " comb a simple list of words for 20 chars at a time" ;
36
+ for \(/..... /) -> \c {
37
+ tap-ok Supply . from-list(@ source ). comb (| c),
38
+ [<olddo gjump >],
39
+ " comb a simple list of words with { c. raku. substr (1 )} " ;
40
+ }
41
+
42
+ for \(20 ) -> \c {
43
+ tap-ok Supply . from-list(@ source ). comb (| c),
44
+ [' olddogjumpso' ],
45
+ " comb a simple list of words with { c. raku. substr (1 )} " ;
46
+ }
37
47
38
48
for \(" o" ), \(" o" ,Inf ), \(" o" ,* ) -> \c {
39
49
tap-ok Supply . from-list(@ source ). comb (| c),
40
50
[<o o o >],
41
51
" comb a simple list of words with { c. raku. substr (1 )} " ;
42
52
}
43
53
44
- tap-ok Supply . from-list(@ source ). comb (' z' ),
45
- [],
46
- " comb a simple list of words for a Str needle that is not there" ;
54
+ for \(' z' ), \(/.** 20 /) -> \c {
55
+ tap-ok Supply . from-list(@ source ). comb (| c),
56
+ [],
57
+ " comb a simple list of words with { c. raku. substr (1 )} " ;
58
+ }
47
59
}
48
60
49
61
# vim: ft=perl6 expandtab sw=4
0 commit comments