We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf73574 commit 27810a7Copy full SHA for 27810a7
1 file changed
tests/FSharp.Control.AsyncSeq.Tests/AsyncSeqTests.fs
@@ -176,6 +176,26 @@ let ``asyncSeq yield! seq combines with other yields``() =
176
let a = s |> AsyncSeq.toListSynchronously
177
Assert.True(([1;2;3;4] = a))
178
179
+[<Test>]
180
+let ``asyncSeq yield! list works``() =
181
+ let items = [1; 2; 3]
182
+ let s = asyncSeq {
183
+ yield! items
184
+ }
185
+ let a = s |> AsyncSeq.toListSynchronously
186
+ Assert.True(([1;2;3] = a))
187
+
188
189
+let ``asyncSeq yield! list combines with other yields``() =
190
+ let items = [2; 3]
191
192
+ yield 1
193
194
+ yield 4
195
196
197
+ Assert.True(([1;2;3;4] = a))
198
199
[<Test>]
200
let ``AsyncSeq.concatSeq works``() =
201
let ls = [ [1;2] ; [3;4] ]
0 commit comments