Skip to content

Commit 62b8dca

Browse files
committed
Core.Tests: add new test to AvoidTooShortNames
Closes fsprojects#592
1 parent 889aa0d commit 62b8dca

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

+12
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,15 @@ type TorStreamCipher(keyBytes: array<byte>, ivOpt: Option<array<byte>>) =
9595
"""
9696

9797
Assert.IsTrue this.ErrorsExist
98+
99+
[<Test>]
100+
member this.AvoidTooShortNamesShouldProduceError_7() =
101+
this.Parse """
102+
module Base32Util =
103+
let DecodeBase32 text =
104+
let rec parse result input =
105+
result
106+
[ for c in text -> c ] |> parse List.Empty |> List.toArray
107+
"""
108+
109+
Assert.IsTrue this.ErrorsExist

0 commit comments

Comments
 (0)