We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07aa04a commit 89d731dCopy full SHA for 89d731d
tests/FSharpLint.Core.Tests/Rules/Hints/HintMatcher.fs
@@ -953,4 +953,15 @@ let x y =
953
954
this.SetConfig(["List.map f (List.map g x) ===> List.map (g >> f) x"])
955
this.Parse(source)
956
- Assert.AreEqual(expected, this.ApplyQuickFix source)
+ Assert.AreEqual(expected, this.ApplyQuickFix source)
957
+
958
+ [<Test>]
959
+ member this.``List append of singleton item can be replaced with :: operator``() =
960
+ let source = """[head] @ tail"""
961
962
+ let expected = """head :: tail"""
963
964
+ this.SetConfig(["[x] @ y ===> x::y"])
965
+ this.Parse(source)
966
967
0 commit comments