Skip to content

Commit 8a93684

Browse files
committed
Core.Tests: add a regression test
This test was incorporated following the suggestion of @webwarrior-ws to include a test case that utilizes three pipe operators [1]. [1] #697 (review)
1 parent 34e2d7d commit 8a93684

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,16 @@ module Foo
186186
module Foo
187187
188188
-1.0 |> printf "%d" |> ignore
189+
"""
190+
191+
Assert.IsTrue this.NoErrorsExist
192+
193+
[<Test>]
194+
member this.``Use pipe operator thrice without binding``() =
195+
this.Parse """
196+
module Foo
197+
198+
-1.0 |> printf "%d" |> ignore |> someOtherFunc
189199
"""
190200

191201
Assert.IsTrue this.NoErrorsExist

0 commit comments

Comments
 (0)