Created
March 3, 2021 09:26
-
-
Save Slesa/fa90b9386eb9c8a7a72d76b32561cc54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open FsUnit | |
[<TestFixture>] | |
type ``When using apply in List`` ()= | |
let (<*>) = List.apply | |
[<Test>] member x. | |
``it should call apply to each member``() = | |
[add] <*> [1; 2] <*> [10;20] | |
|> should equal [11;21;12;22] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open FsUnit | |
[<TestFixture>] | |
type ``When using apply in List`` ()= | |
[<Test>] member x. | |
``it should call apply to each member``() = | |
let resultList = | |
let (<*>) = List.apply | |
[add] <*> [1; 2] <*> [10;20] | |
resultList |> should equal [11;21;12;22] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment