File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
FsToolkit.ErrorHandling.TaskResult.Tests
FsToolkit.ErrorHandling.Tests Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -310,11 +310,11 @@ let defaultValueTests =
310310let defaultErrorTests =
311311 testList " TaskResult.defaultError Tests" [
312312 testCase " defaultError returns the error value" <| fun _ ->
313- let v = TaskResult.defaultValue 43 ( toTask ( Error 42 ))
313+ let v = TaskResult.defaultError 43 ( toTask ( Error 42 ))
314314 Expect.hasTaskValue 42 v
315315
316316 testCase " defaultError returns the given value for Ok" <| fun _ ->
317- let v = TaskResult.defaultValue 43 ( toTask ( Ok 42 ))
317+ let v = TaskResult.defaultError 43 ( toTask ( Ok 42 ))
318318 Expect.hasTaskValue 43 v
319319 ]
320320
Original file line number Diff line number Diff line change @@ -566,6 +566,7 @@ let allTests = testList "Async Result tests" [
566566 setErrorTests
567567 withErrorTests
568568 defaultValueTests
569+ defaultErrorTests
569570 defaultWithTests
570571 ignoreErrorTests
571572 teeTests
You can’t perform that action at this time.
0 commit comments