Skip to content

Commit 6fa06f1

Browse files
committed
tests/Hints: demonstrate issue with recently added hint
Added in d703c55 .
1 parent 89d731d commit 6fa06f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/FSharpLint.Core.Tests/Rules/Hints/HintMatcher.fs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,3 +965,13 @@ let x y =
965965
this.Parse(source)
966966
Assert.AreEqual(expected, this.ApplyQuickFix source)
967967

968+
[<Test>]
969+
member this.``Demonstrate issue with recently added hint``() =
970+
let source = """[a;b] @ tail"""
971+
972+
this.SetConfig(["[x] @ y ===> x::y"])
973+
this.Parse(source)
974+
975+
// invalid!
976+
Assert.AreNotEqual("a;b :: tail", this.ApplyQuickFix source)
977+

0 commit comments

Comments
 (0)