Skip to content

Commit b24feaf

Browse files
committed
strong BV test
1 parent 36eb87d commit b24feaf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/data/t_bv.ml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,14 @@ t ~name:(spf "line %d" __LINE__) (fun () ->
536536
negate_self bv;
537537
assert_equal ~printer:(CCFormat.to_string ppli) [] (to_list bv);
538538
true)
539+
;;
540+
541+
t ~name:(spf "line %d" __LINE__) (fun () ->
542+
let v = empty () in
543+
union_into ~into:v (of_list [ 9; 16 ]);
544+
resize_minimize_memory v 9;
545+
Internal_.__check_invariant v;
546+
is_empty v)
539547

540548
module Op = struct
541549
type t =
@@ -621,11 +629,14 @@ module Op = struct
621629
[]);
622630
[
623631
1, return Clear;
632+
1, return Clear_and_shrink;
624633
1, return Negate;
625634
1, return Filter_is_odd;
626635
(1, rand_list >|= fun l -> Inter l);
627636
(1, rand_list >|= fun l -> Union l);
637+
(1, rand_list >|= fun l -> Diff l);
628638
(1, 0 -- 100 >|= fun x -> Resize x);
639+
(1, 0 -- 100 >|= fun x -> Resize_min_mem x);
629640
];
630641
]
631642

0 commit comments

Comments
 (0)