File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ module Bool = struct
288288 | And -> to_bool (a && b)
289289 | Or -> to_bool (a || b)
290290 | Xor -> to_bool (xor a b)
291- | Implies -> to_bool ( not a || b)
291+ | Implies -> to_bool (( not a) || b)
292292 | _ -> eval_error (`Unsupported_operator (`Binop op, Ty_bool ))
293293
294294 let [@ inline] triop (op : Ty.Triop.t ) c v1 v2 =
Original file line number Diff line number Diff line change @@ -347,8 +347,7 @@ module Bool_test = struct
347347 assert_equal true_ (Eval. binop Ty_bool Xor true_ false_);
348348 assert_equal true_ (Eval. binop Ty_bool Xor false_ true_);
349349 assert_equal false_ (Eval. binop Ty_bool Xor false_ false_) )
350- ; (
351- " test_implies" > :: fun _ ->
350+ ; ( " test_implies" > :: fun _ ->
352351 assert_equal true_ (Eval. binop Ty_bool Implies true_ true_);
353352 assert_equal false_ (Eval. binop Ty_bool Implies true_ false_);
354353 assert_equal true_ (Eval. binop Ty_bool Implies false_ true_);
You can’t perform that action at this time.
0 commit comments