package alcotest

Build not yet checked
  1. Overview
  2. Docs
Alcotest is a lightweight and colourful test framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

alcotest-1.10.1.tbz
sha256=62c095deda5cdd66c30684f7b1f25b5775d1d3d3ded927c7b893b4a6834ddb47
sha512=6f779fa96faf96b5b462ddc428aeaaa73a6be96771dbbad6a05b7bb00dae246648891c211e26174729c1f40128410ad96f2512101ae8b7d61f968ee61534b3d0

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