package alcotest
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=54281907e02d78995df246dc2e10ed182828294ad2059347a1e3a13354848f6c
sha512=1aea91de40795ec4f6603d510107e4b663c1a94bd223f162ad231316d8595e9e098cabbe28a46bdcb588942f3d103d8377373d533bcc7413ba3868a577469b45
doc/alcotest.engine/Alcotest_engine/V1/Test/index.html
Module V1.TestSource
Testable values
The following combinators represent types that can be used with the check functions below.
TESTABLE provides an abstract description for testable values.
testable pp eq is a new testable with the pretty-printer pp and equality eq.
slist t comp tests sorted lists of ts. The list are sorted using comp.
result t e tests ts on success and es on failure.
triple a b c tests triples of as, bs and cs.
of_pp pp tests values which can be printed using pp and compared using Stdlib.compare
neg t is t's negation: it is true when t is false and it is false when t is true.
Assertion functions
Functions for asserting various properties within unit-tests. A failing assertion will cause the testcase to fail immediately.
The assertion functions optionally take information about the location at which they are called in the source code. This is used for giving more descriptive error messages in the case of failure.
Check that two values are equal.
Check that two values are equal (labeled variant of check).
Simply fail.
Simply fail with a formatted message.
Check that an exception is raised.