Skip to content

Commit 0a44c8c

Browse files
committed
AvoidTooShortNames: added a test
From fsprojects#825.
1 parent 0a73b35 commit 0a44c8c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/FSharpLint.Core.Tests/Rules/Conventions/AvoidTooShortNames.fs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,3 +205,13 @@ module Base32Util =
205205
"""
206206

207207
Assert.IsTrue this.ErrorsExist
208+
209+
[<Test>]
210+
member this.AvoidTooShortNamesShouldProduceError19() =
211+
this.Parse """
212+
match exprToFlatten with
213+
| SynExpr.App(_, _, x, y, _) -> ()
214+
| _ -> ()
215+
"""
216+
217+
Assert.IsTrue this.ErrorsExist

0 commit comments

Comments
 (0)