Skip to content

Commit

Permalink
Add test for pipe operator
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-snezhko committed Jul 20, 2024
1 parent 6e188ff commit cae92f1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions compiler/test/suites/functions.re
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,15 @@ truc()|},
|},
"0\n1\n2\n3\n",
);
assertRun(
"partial13",
{|
let (|>) = (x, f) => f(x)
let add = (x, y) => x + y
print(1 |> partial add(2, _) |> partial add(3, _))
|},
"6\n",
);

assertCompileError(
"partial_err1",
Expand Down

0 comments on commit cae92f1

Please sign in to comment.