Skip to content

Commit

Permalink
Core.Tests: add a regression test
Browse files Browse the repository at this point in the history
This test was incorporated following the suggestion of
@webwarrior-ws to include a test case that utilizes three
pipe operators [1].

[1] #697 (review)
  • Loading branch information
Mersho committed Feb 19, 2024
1 parent 34e2d7d commit 8a93684
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,16 @@ module Foo
module Foo
-1.0 |> printf "%d" |> ignore
"""

Assert.IsTrue this.NoErrorsExist

[<Test>]
member this.``Use pipe operator thrice without binding``() =
this.Parse """
module Foo
-1.0 |> printf "%d" |> ignore |> someOtherFunc
"""

Assert.IsTrue this.NoErrorsExist

0 comments on commit 8a93684

Please sign in to comment.