@@ -65,10 +65,7 @@ let traverseOptionMTests =
6565 let expected = Some tweets
6666 let actual = List.traverseOptionM tryTweetOption tweets
6767
68- Expect.equal
69- actual
70- expected
71- " Should have a list of valid tweets"
68+ Expect.equal actual expected " Should have a list of valid tweets"
7269
7370 testCase " traverseOption with few invalid data"
7471 <| fun _ ->
@@ -81,10 +78,7 @@ let traverseOptionMTests =
8178 let expected = None
8279 let actual = List.traverseOptionM tryTweetOption tweets
8380
84- Expect.equal
85- actual
86- expected
87- " traverse the list and return none"
81+ Expect.equal actual expected " traverse the list and return none"
8882 ]
8983
9084let sequenceResultMTests =
@@ -151,10 +145,7 @@ let sequenceOptionMTests =
151145
152146 let actual = List.sequenceOptionM ( List.map tryTweetOption tweets)
153147
154- Expect.equal
155- actual
156- None
157- " traverse the list and return none"
148+ Expect.equal actual None " traverse the list and return none"
158149 ]
159150
160151let traverseResultATests =
@@ -361,12 +352,11 @@ let traverseAsyncResultMTests =
361352
362353let traverseAsyncOptionMTests =
363354
364- let userIds =
365- [
366- userId1
367- userId2
368- userId3
369- ]
355+ let userIds = [
356+ userId1
357+ userId2
358+ userId3
359+ ]
370360
371361 testList " List.traverseAsyncOptionM Tests" [
372362 testCaseAsync " traverseAsyncOptionM with a list of valid data"
@@ -479,19 +469,21 @@ let sequenceAsyncResultMTests =
479469
480470let sequenceAsyncOptionMTests =
481471
482- let userIds =
483- [
484- userId1
485- userId2
486- userId3
487- ]
472+ let userIds = [
473+ userId1
474+ userId2
475+ userId3
476+ ]
488477
489478 testList " List.sequenceAsyncOptionM Tests" [
490479 testCaseAsync " sequenceAsyncOptionM with a list of valid data"
491480 <| async {
492481 let expected = Some userIds
493482 let f x = async { return Some x }
494- let actual = List.map f userIds |> List.sequenceAsyncOptionM
483+
484+ let actual =
485+ List.map f userIds
486+ |> List.sequenceAsyncOptionM
495487
496488 match expected with
497489 | Some e -> do ! Expect.hasAsyncSomeValue e actual
@@ -502,7 +494,10 @@ let sequenceAsyncOptionMTests =
502494 <| async {
503495 let expected = None
504496 let f _ = async { return None }
505- let actual = List.map f userIds |> List.sequenceAsyncOptionM
497+
498+ let actual =
499+ List.map f userIds
500+ |> List.sequenceAsyncOptionM
506501
507502 match expected with
508503 | Some _ -> failwith " Error in the test case code"
0 commit comments