Skip to content

Commit

Permalink
✅ Check that -a () is -(a ())
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeta611 committed Jul 5, 2024
1 parent 6e1af99 commit 083e1ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/test_react_trace.ml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ let parse_seq () =

let parse_op () =
let open Syntax in
let (Ex expr) = parse_expr "not (+-42 <= 0 + -0) || true" in
let (Ex expr) = parse_expr "not (+-a () <= 0 + -0) || true" in
Alcotest.(check' (of_pp Sexp.pp_hum))
~msg:"parse op" ~actual:(Expr.sexp_of_t expr)
~expected:
Expand All @@ -211,7 +211,13 @@ let parse_op () =
Uop
{
op = Uplus;
arg = Uop { op = Uminus; arg = Const (Int 42) };
arg =
Uop
{
op = Uminus;
arg =
App { fn = Var "a"; arg = Const Unit };
};
};
right =
Bop
Expand Down

0 comments on commit 083e1ef

Please sign in to comment.