bennn / assertions

Simple assertions library for OCaml.
Other
6 stars 0 forks source link

assertions

Simple assertions library for OCaml.

Assertions are unary or binary operations that return unit on success and raise an exception on failure. Each assertion defines a custom exception; for example assert_is_none will raise an exception Assert_is_none on failure. Where possible, the assertions will try to print their argument values using the dump function from BatPervasives (included in serializer.ml).

API

Notes:

Install

Via OPAM:

opam install assertions