Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3kk1d committed Oct 16, 2024
1 parent c4db0d0 commit 03208ff
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions test/Test_Elaboration.re
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ let deferral = () =>
alco_check(
"string_sub(\"hello\", 1, _)",
dhexp_of_uexp(
// This test seems broken
DeferredAp(
Var("string_sub") |> Exp.fresh,
[
Expand Down Expand Up @@ -408,20 +409,12 @@ let elaboration_tests = [
alco_check(
"Singleton labeld tuple analysis adds label",
Let(
Cast(
Var("x") |> Pat.fresh,
Parens(
Prod([
TupLabel(Label("l") |> Typ.fresh, String |> Typ.fresh)
|> Typ.fresh,
])
|> Typ.fresh,
)
|> Typ.fresh,
Unknown(Internal) |> Typ.fresh,
)
|> Pat.fresh,
Parens(Tuple([String("a") |> Exp.fresh]) |> Exp.fresh) |> Exp.fresh, // TODO Need to assert there's no inconsistency in this branch
Var("x") |> Pat.fresh,
Tuple([
TupLabel(Label("l") |> Exp.fresh, String("a") |> Exp.fresh)
|> Exp.fresh,
])
|> Exp.fresh,
Var("x") |> Exp.fresh,
)
|> Exp.fresh,
Expand All @@ -440,7 +433,7 @@ let elaboration_tests = [
Unknown(Internal) |> Typ.fresh,
)
|> Pat.fresh,
Parens(String("a") |> Exp.fresh) |> Exp.fresh, // TODO Need to assert there's no inconsistency in this branch
Parens(String("a") |> Exp.fresh) |> Exp.fresh,
Var("x") |> Exp.fresh,
)
|> Exp.fresh,
Expand Down

0 comments on commit 03208ff

Please sign in to comment.