@@ -82,7 +82,7 @@ module Immutable =
8282
8383module SideEffects =
8484 [<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 {
8686 let ts = Gen.getSeqWithSideEffect variant
8787 let finder = (=) 11
8888
@@ -100,7 +100,7 @@ module SideEffects =
100100 }
101101
102102 [<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 {
104104 let ts = Gen.getSeqWithSideEffect variant
105105 let finder x = task { return x = 11 }
106106
@@ -201,7 +201,7 @@ module SideEffects =
201201 found |> should be True
202202 i |> should equal 0 // notice that it should be one higher if the statement after 'yield' is evaluated
203203
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 '
205205 let! found = ts |> TaskSeq.exists ((=) 4 )
206206 found |> should be True
207207 i |> should equal 4 // only partial evaluation!
@@ -221,7 +221,7 @@ module SideEffects =
221221 found |> should be True
222222 i |> should equal 0 // notice that it should be one higher if the statement after 'yield' is evaluated
223223
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 '
225225 let! found = ts |> TaskSeq.existsAsync ( fun x -> task { return x = 4 })
226226 found |> should be True
227227 i |> should equal 4 // only partial evaluation!
0 commit comments