Skip to content

Commit 8b75175

Browse files
committed
test: compat 4.03
1 parent feaa8ec commit 8b75175

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/data/t_bv.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ q (Q.list Q.small_int) (fun l ->
3939
q Q.small_int (fun size -> create ~size true |> cardinal = size);;
4040

4141
q Q.small_int (fun size ->
42-
create ~size true |> to_sorted_list = List.init size CCFun.id)
42+
create ~size true |> to_sorted_list = CCList.init size CCFun.id)
4343
;;
4444

4545
t ~name:(spf "line %d" __LINE__) @@ fun () ->
@@ -225,7 +225,7 @@ q
225225
let l1 = bv |> to_sorted_list in
226226
let l2 =
227227
CCList.init (length bv) (get bv)
228-
|> List.mapi (fun i b -> i, b)
228+
|> CCList.mapi (fun i b -> i, b)
229229
|> CCList.filter_map (function
230230
| i, true -> Some i
231231
| _ -> None)
@@ -629,7 +629,7 @@ module Op = struct
629629
(* random list of integers *)
630630
let rand_list =
631631
0 -- 200 >>= fun n st ->
632-
List.init n (fun i ->
632+
CCList.init n (fun i ->
633633
if bool st then
634634
Some i
635635
else
@@ -762,7 +762,7 @@ module Ref_ = struct
762762
| Filter_is_odd -> self.set <- Intset.filter (fun x -> x mod 2 = 1) self.set
763763
| Negate ->
764764
let l' =
765-
List.init self.size (fun x -> x)
765+
CCList.init self.size (fun x -> x)
766766
|> List.filter (fun x -> not (Intset.mem x self.set))
767767
in
768768
self.set <- Intset.of_list l'

0 commit comments

Comments
 (0)