Skip to content

Commit 4c93aa7

Browse files
sep2TheAngryByrd
authored andcommitted
Fix defaultError tests
1 parent df82927 commit 4c93aa7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/FsToolkit.ErrorHandling.TaskResult.Tests/TaskResult.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,11 @@ let defaultValueTests =
310310
let 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

tests/FsToolkit.ErrorHandling.Tests/AsyncResult.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)