Skip to content

Commit 11b791b

Browse files
committed
Merge branch 'RFC-FS-1004-Result-methods' of github.com:wallymathieu/visualfsharp into RFC-FS-1004-Result-methods
2 parents 5fb85c7 + 248a018 commit 11b791b

File tree

1 file changed

+2
-1
lines changed
  • src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Core

1 file changed

+2
-1
lines changed

src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Core/ResultTests.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ type ResultTests() =
3838

3939
let shouldBeErrorWithValue expected maybeError = match maybeError with | Error e-> Assert.AreEqual(expected, e) | Ok v-> failwith "Expected Error, got Ok!"
4040

41+
let addOneOk (v:int) = Ok (v+1)
42+
4143
[<Test>]
4244
member this.CanChainTogetherSuccessiveValidations() =
4345
test_validate_email "" (Error Empty)
@@ -68,7 +70,6 @@ type ResultTests() =
6870
|> mapError toUpper
6971
|> shouldBeOkWithValue "some@email.com"
7072

71-
let addOneOk (v:int) = Ok (v+1)
7273
[<Test>]
7374
member this.BindShouldModifyOkValue() =
7475
Ok 42

0 commit comments

Comments
 (0)