package smol-helpers

  1. Overview
  2. Docs

Module Smol_helpers.Test_helpersSource

Sourcetype kind =
  1. | Unit
  2. | Rand
Sourceval map_tests : (('a * 'b) -> 'c) -> ('a * 'd * 'b) -> 'd * [> `Quick ] * 'c
Sourceval repeat : int -> (kind * (unit -> 'a)) -> unit -> unit
Sourceval get_tests : int -> (kind * 'a * (unit -> 'b)) list -> ('a * [> `Quick ] * (unit -> unit)) list
Sourcemodule Make (A : Smol.Algebra.Basic_S) : sig ... end
Sourcemodule Test_Basics (A : Smol.Algebra.Basic_S) : sig ... end
Sourceval make_tests_basic : ?ampli:int -> ?name:string -> (module Smol.Algebra.Basic_S with type t = 'a) -> (unit -> 'a) -> string * (string * [> `Quick ] * (unit -> unit)) list
Sourceval make_tests_mul_monoid : ?ampli:int -> ?name:string -> commutative:bool -> (module Smol.Algebra.Mul_Monoid_S with type t = 'a) -> (unit -> 'a) -> string * (string * [> `Quick ] * (unit -> unit)) list
Sourceval make_tests_add_monoid : ?ampli:int -> ?name:string -> commutative:bool -> (module Smol.Algebra.Add_Monoid_S with type t = 'a) -> (unit -> 'a) -> string * (string * [> `Quick ] * (unit -> unit)) list
Sourceval make_tests_add_group : ?ampli:int -> ?name:string -> commutative:bool -> (module Smol.Algebra.Add_Group_S with type t = 'a) -> (unit -> 'a) -> string * (string * [> `Quick ] * (unit -> unit)) list
Sourceval make_tests_semiring : ?ampli:int -> ?name:string -> commutative:bool -> (module Smol.Algebra.Semiring_S with type t = 'a) -> (unit -> 'a) -> string * (string * [> `Quick ] * (unit -> unit)) list
Sourceval make_tests_ring : ?ampli:int -> ?name:string -> commutative:bool -> (module Smol.Algebra.Ring_S with type t = 'a) -> (unit -> 'a) -> string * (string * [> `Quick ] * (unit -> unit)) list
Sourcemodule Test_Field (A : Smol.Algebra.Field_S) : sig ... end
Sourceval make_tests_field : ?ampli:int -> ?name:string -> (module Smol.Algebra.Field_S with type t = 'a) -> (unit -> 'a) -> string * (string * [> `Quick ] * (unit -> unit)) list
OCaml

Innovation. Community. Security.