Skip to content

Commit db34739

Browse files
committed
Core.Tests: updated tests for rule 77
Updated tests for rule 77 to adhere to changes in documentation, that create exception for functions applied to more than 1 argument.
1 parent 2c590fa commit db34739

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ let someFunc someParam =
145145
member this.``Use pipe operator once inside of an array``() =
146146
this.Parse """
147147
let someFunc () =
148-
[| "Foo" |> String.replicate 2 |]
148+
[| "Foo" |> String.length |]
149149
"""
150150

151151
Assert.IsTrue this.ErrorsExist
@@ -175,7 +175,7 @@ let someFunc someParam barParam =
175175
this.Parse """
176176
module Foo
177177
178-
-1.0 |> printf "%d"
178+
-1.0 |> abs
179179
"""
180180

181181
Assert.IsTrue this.ErrorsExist
@@ -185,7 +185,7 @@ module Foo
185185
this.Parse """
186186
module Foo
187187
188-
-1.0 |> printf "%d" |> ignore
188+
-1.0 |> abs |> ignore
189189
"""
190190

191191
Assert.IsTrue this.NoErrorsExist

0 commit comments

Comments
 (0)