Skip to content

Commit

Permalink
Further fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcb committed Jul 24, 2021
1 parent 51f80d8 commit b7613ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Fantomas.Tests/UtilsTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ SetupTesting.generateSetupScript __SOURCE_DIRECTORY__

module List =
[<Test>]
let ``When input is empty`` () =
let ``when input is empty`` () =
let property (p: bool) : bool =
let before, after = List.partitionWhile (fun _ _ -> p) []
before = [] && after = []
Expand All @@ -126,7 +126,7 @@ module List =
Check.QuickThrowOnFailure(property false)

[<Test>]
let ``When predicate always returns false`` () =
let ``when predicate always returns false`` () =
let property (xs: int list) : bool =
let before, after =
List.partitionWhile (fun _ _ -> false) xs
Expand All @@ -136,7 +136,7 @@ module List =
Check.QuickThrowOnFailure property

[<Test>]
let ``When predicate always returns true`` () =
let ``when predicate always returns true`` () =
let property (xs: int list) : bool =
let before, after =
List.partitionWhile (fun _ _ -> true) xs
Expand All @@ -146,7 +146,7 @@ module List =
Check.QuickThrowOnFailure property

[<Test>]
let ``When predicate returns true until certain index`` () =
let ``when predicate returns true until certain index`` () =
let property (xs: int list, i: int) : bool =
let before, after =
List.partitionWhile (fun index _ -> i <> index) xs
Expand Down
1 change: 0 additions & 1 deletion src/Fantomas/Utils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ module List =

go 0 [] xs


module Map =
let tryFindOrDefault (defaultValue: 'g) (key: 't) (map: Map<'t, 'g>) =
match Map.tryFind key map with
Expand Down

0 comments on commit b7613ed

Please sign in to comment.