This commit is contained in:
Simon Cruanes 2013-09-29 18:38:51 +02:00
parent a2df859a36
commit 77233c3750
2 changed files with 2 additions and 8 deletions

View file

@ -91,9 +91,6 @@ module Arbitrary = struct
let among l = among_array (Array.of_list l)
let among_tbl k =
failwith "among_tbl: not implemented yet"
let choose l =
assert (l <> []);
let a = Array.of_list l in

View file

@ -59,10 +59,10 @@ module Arbitrary : sig
(** A generator of arbitrary values of type 'a *)
val int : int -> int t
(** Any integer *)
(** Any integer between 0 (inclusive) and the given higher bound (exclusive) *)
val int_range : start:int -> stop:int -> int t
(* Integer range *)
(* Integer range start .. stop-1 *)
val small_int : int t
(** Ints lower than 100 *)
@ -109,9 +109,6 @@ module Arbitrary : sig
val among_array : 'a array -> 'a t
(** Choose in the array *)
val among_tbl : ('k, 'v) Hashtbl.t -> 'v t
(** Choose in the table *)
val choose : 'a t list -> 'a t
(** Choice among combinations *)