package ppx_expect

  1. Overview
  2. Docs
Cram like framework for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.3.tar.gz
md5=a7daa59114638fd80f52b6adbb0db7ed
sha512=d26364f2c7c0a3d83e5ecc144f77875a00887853c72c03e0122d658acb4d1cb4c6d77fabc1222d775663db74f0345be2a33518dffac9feef57ece5e9e40dc709

doc/ppx_expect.runtime/Ppx_expect_runtime/Expectation_id/index.html

Module Ppx_expect_runtime.Expectation_idSource

Sourcetype t

An identifier for a test node. Each test node that was parsed from an extension point or attribute ([%expect], [%expect_exact], [%expect.unreachable], or [%expect.uncaught_exn]) or that might be added into the corrected file (e.g. a [%expect] for trailing output) is associated with a unique t.

include Base.Intable.S with type t := t
Sourceval of_int_exn : int -> t
Sourceval to_int_exn : t -> int
include Base.Hashable.Key with type t := t
Sourceval compare : t -> t -> int
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval hash : t -> int

Values returned by hash must be non-negative. An exception will be raised in the case that hash returns a negative value.

Sourceval mint : Base.unit -> t

Create a new t. Calls to mint will give distinct ids, but uniqueness is not guaranteed if of_int_exn is used to create an id.

OCaml

Innovation. Community. Security.