Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Oct 18, 2022
1 parent f36a9fc commit c7ff44f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions tests/unit/t_iter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,13 @@ let () =
let i = Stdlib.min i j and j = Stdlib.max i j in
i -- j |> to_rev_list = (int_range_by ~step:~-1 j i |> to_list))

open struct
let array_for_all f a =
try
for i = 0 to Array.length a - 1 do
if not (f a.(i)) then raise Exit
done;
true
with Exit -> false
end
let array_for_all f a =
try
for i = 0 to Array.length a - 1 do
if not (f a.(i)) then raise Exit
done;
true
with Exit -> false

let () =
add_qcheck __LINE__
Expand Down

0 comments on commit c7ff44f

Please sign in to comment.