File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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
540548module 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
You can’t perform that action at this time.
0 commit comments