package tezos-test-helpers

  1. Overview
  2. Docs

assert contains Alcotest convenience assertions.

val assert_true : string -> bool -> unit

Alcotest check that b is true.

val assert_false : string -> bool -> unit

Alcotest check that b is false.

val impossible : string -> unit

Alcotest version of assert false.

val check_any : ?msg:string -> ('a -> bool) -> 'a list -> unit

Assert that at least one value in l satisfies f.

val contains : 'a Alcotest.testable -> string -> 'a0 -> 'a1 list -> unit

contains m msg x ls asserts that one testable in ls equals x, and otherwise fails with msg

OCaml

Innovation. Community. Security.