Skip to content

Commit

Permalink
Test(FavourIgnoreOverLetWild): added more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mersho committed Dec 26, 2023
1 parent 0d8cbcd commit 1ceb155
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,23 @@ module Program
let result = this.ApplyQuickFix source

Assert.AreEqual(expected, result)

[<Test>]
member this.LetWildCardInParanUnitValueSuggestedFix() =
let source = """
module Program
let ((((_)))) = List.iter (fun x -> ()) []"""

let expected = """
module Program
(List.iter (fun x -> ()) []) |> ignore"""

this.Parse source

Assert.IsTrue(this.ErrorExistsAt(4, 4))

let result = this.ApplyQuickFix source

Assert.AreEqual(expected, result)

0 comments on commit 1ceb155

Please sign in to comment.