Skip to content

Commit

Permalink
Add example with holes
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3kk1d committed Oct 7, 2024
1 parent 6522501 commit f0e16e7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/Test_MakeTerm.re
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,16 @@ let tests = [
"let f = fun x -> x in 1",
)
}),
test_case("Incomplete Function Definition", `Quick, () => {
exp_check(
Let(
EmptyHole |> Pat.fresh,
Fun(Var("x") |> Pat.fresh, EmptyHole |> Exp.fresh, None, None)
|> Exp.fresh,
EmptyHole |> Exp.fresh,
)
|> Exp.fresh,
"let = fun x -> in ",
)
}),
];

0 comments on commit f0e16e7

Please sign in to comment.