Skip to content

Commit

Permalink
Add some commented out tests for type variables
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3kk1d committed Nov 4, 2024
1 parent c5861cd commit 1aec2b9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/Test_Menhir.re
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,27 @@ let tests = [
Constructor("A", Int |> Typ.fresh) |> Exp.fresh,
"A ~ Int",
),
// TODO Fix for the tests below
// menhir_only_test(
// "Constructor with Type Variable",
// Constructor("A", Var("T") |> Typ.fresh) |> Exp.fresh,
// "A ~ T",
// ),
// parser_test(
// "Type Variable",
// Let(
// Cast(
// Var("x") |> Pat.fresh,
// Var("T") |> Typ.fresh,
// Unknown(Internal) |> Typ.fresh,
// )
// |> Pat.fresh,
// EmptyHole |> Exp.fresh,
// Var("x") |> Exp.fresh,
// )
// |> Exp.fresh,
// "let x : T = ? in x",
// ),
parser_test(
"Type Alias",
TyAlias(Var("x") |> TPat.fresh, Int |> Typ.fresh, Int(1) |> Exp.fresh)
Expand Down

0 comments on commit 1aec2b9

Please sign in to comment.