File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -60,19 +60,6 @@ plan 17;
60
60
is ~ @ a2 , " 1 2 3 4 5 6 7 8 9 10 end" , " Second tap also gets all values" ;
61
61
}
62
62
63
- {
64
- my $ p = Publish. for (1 .. 5 );
65
- my $ c = $ p . Channel ;
66
- my @ a ;
67
- loop {
68
- winner(
69
- $ c => { @ a . push ($ ^ val ) },
70
- $ c . closed => { @ a . push (" done" ); last }
71
- );
72
- }
73
- is ~ @ a , " 1 2 3 4 5 done" , " Publish.for and .Channel work" ;
74
- }
75
-
76
63
{
77
64
my $ p = Publish. for (2 .. 6 );
78
65
my @ a ;
Original file line number Diff line number Diff line change
1
+ use v6 ;
2
+ use Test ;
3
+
4
+ plan 1 ;
5
+
6
+ {
7
+ my $ p = Publish. for (1 .. 5 );
8
+ my $ c = $ p . Channel ;
9
+ my @ a ;
10
+ loop {
11
+ winner(
12
+ $ c => { say " pushing" ; @ a . push ($ ^ val ) },
13
+ default => { say " done" ; @ a . push (" done" ); last }
14
+ );
15
+ }
16
+ is ~ @ a , " 1 2 3 4 5 done" , " Publish.for and .Channel work" ;
17
+ }
You can’t perform that action at this time.
0 commit comments