Skip to content

Commit

Permalink
Added additional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3kk1d committed Oct 24, 2024
1 parent 5b82cae commit bc19bf6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/Test_MakeTerm.re
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,17 @@ let tests = [
"let = fun x -> in ",
)
}),
test_case("Constructor", `Quick, () => {
exp_check(
Constructor("A", Unknown(Internal) |> Typ.fresh) |> Exp.fresh,
"A",
)
}),
test_case("Type Alias", `Quick, () => {
exp_check(
TyAlias(Var("x") |> TPat.fresh, Int |> Typ.fresh, Int(1) |> Exp.fresh)
|> Exp.fresh,
"type x = Int in 1",
)
}),
];

0 comments on commit bc19bf6

Please sign in to comment.