Skip to content

Commit

Permalink
fix pvec tests
Browse files Browse the repository at this point in the history
(make choose's result irrelevant, only test whether it returns)
  • Loading branch information
c-cube committed Jan 6, 2024
1 parent 66b42ea commit 03e253a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/pvec/t_pvec.ml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ module Ref_impl = struct

let choose l =
match l with
| [] -> None
| x :: _ -> Some x
| [] -> false
| _ :: _ -> true
end

module Op = struct
Expand Down Expand Up @@ -230,7 +230,7 @@ let check_ops ~show_x (ops : 'a Op.t list) : unit =
| Op.Check_to_list ->
if to_list !cur <> Ref_impl.to_list !cur_ref then fail ()
| Op.Check_choose ->
if choose !cur <> Ref_impl.choose !cur_ref then fail ()
if Option.is_some (choose !cur) <> Ref_impl.choose !cur_ref then fail ()
| Op.Check_to_gen ->
if
to_seq !cur |> CCSeq.to_list
Expand Down

0 comments on commit 03e253a

Please sign in to comment.