File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ func test_taskGroup_contains() async {
122
122
}
123
123
124
124
let three = await group. contains ( 3 )
125
- print ( " three = \( three) " )
125
+ print ( " three = \( three) " ) // CHECK: three = true
126
126
127
127
for n in 5 ... 7 {
128
128
group. spawn {
@@ -131,16 +131,11 @@ func test_taskGroup_contains() async {
131
131
}
132
132
133
133
let six = await group. contains ( 6 )
134
- print ( " six = \( six) " )
135
-
136
- for n in 8 ... 10 {
137
- group. spawn {
138
- return n
139
- }
140
- }
141
-
142
- let nine = await group. contains ( 9 )
143
- print ( " nine = \( nine) " )
134
+ print ( " six = \( six) " ) // CHECK: six = true
135
+
136
+
137
+ let sixAgain = await group. contains ( 6 )
138
+ print ( " six again = \( sixAgain) " ) // CHECK: six again = false
144
139
145
140
return 0
146
141
}
You can’t perform that action at this time.
0 commit comments