Skip to content

Commit

Permalink
Fix function deferral test
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3kk1d committed Oct 1, 2024
1 parent 0b2782e commit 8fbfe3b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/Test_Statics.re
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,15 @@ let tests =
test_case("function deferral", `Quick, () =>
alco_check(
"string_sub(\"hello\", 1, _)",
Some(string),
Some(arrow(int, string)),
type_of(
Ap(
Forward,
DeferredAp(
Var("string_sub") |> Exp.fresh,
Tuple([
[
String("hello") |> Exp.fresh,
Int(1) |> Exp.fresh,
Deferral(InAp) |> Exp.fresh,
])
|> Exp.fresh,
],
)
|> Exp.fresh,
),
Expand Down

0 comments on commit 8fbfe3b

Please sign in to comment.