package alcotest

All checked builds pass
  1. Overview
  2. Docs
Alcotest is a lightweight and colourful test framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

alcotest-1.10.2.tbz
sha256=6e0da8828fbf6826de0b782dfe32c45f9fee7a44f1d6257c697d0cf92cfecd36
sha512=fadb58647cb046624e54a08da873e1abdf56fedc3f5f6c9d91a851e4f83a688e451ba087e8100976bfcbe8d6374dd2e6db718f175483e0a825e0acba7be3a3d1

doc/src/alcotest.engine/test_iarray.ml.html

Source file test_iarray.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module type S = sig
  type 'a t

  val iarray : 'a t -> 'a Iarray.t t
  (** [iarray t] tests immutable arrays of [t]s. Available from OCaml 5.4. *)
end

module Make (T : sig
  type 'a t

  val map : ('b -> 'a) -> 'a t -> 'b t
  val array : 'a t -> 'a array t
end) =
struct
  let iarray e = T.map Iarray.to_array (T.array e)
end