@@ -82,7 +82,7 @@ module Immutable =
82
82
83
83
module SideEffects =
84
84
[<Theory; ClassData( typeof< TestSideEffectTaskSeq>) >]
85
- let ``TaskSeq - exists KeyNotFoundException only sometimes for mutated state`` variant = task {
85
+ let ``TaskSeq - exists success only sometimes for mutated state`` variant = task {
86
86
let ts = Gen.getSeqWithSideEffect variant
87
87
let finder = (=) 11
88
88
@@ -100,7 +100,7 @@ module SideEffects =
100
100
}
101
101
102
102
[<Theory; ClassData( typeof< TestSideEffectTaskSeq>) >]
103
- let ``TaskSeq - existsAsync KeyNotFoundException only sometimes for mutated state`` variant = task {
103
+ let ``TaskSeq - existsAsync success only sometimes for mutated state`` variant = task {
104
104
let ts = Gen.getSeqWithSideEffect variant
105
105
let finder x = task { return x = 11 }
106
106
@@ -201,7 +201,7 @@ module SideEffects =
201
201
found |> should be True
202
202
i |> should equal 0 // notice that it should be one higher if the statement after 'yield' is evaluated
203
203
204
- // find some next item. We do get a new iterator, but mutable state is now starting at '1 '
204
+ // find some next item. We do get a new iterator, but mutable state is now still starting at '0 '
205
205
let! found = ts |> TaskSeq.exists ((=) 4 )
206
206
found |> should be True
207
207
i |> should equal 4 // only partial evaluation!
@@ -221,7 +221,7 @@ module SideEffects =
221
221
found |> should be True
222
222
i |> should equal 0 // notice that it should be one higher if the statement after 'yield' is evaluated
223
223
224
- // find some next item. We do get a new iterator, but mutable state is now starting at '1 '
224
+ // find some next item. We do get a new iterator, but mutable state is now still starting at '0 '
225
225
let! found = ts |> TaskSeq.existsAsync ( fun x -> task { return x = 4 })
226
226
found |> should be True
227
227
i |> should equal 4 // only partial evaluation!
0 commit comments