Assertions

The expression assert e evaluates e. If the result is true, nothing more happens, and the entire expression evaluates to a special value called unit. The unit value is written () and its type is unit. But if the result is false, an exception is raised.

.ocamlformat

profile=conventional
ocaml-version=4.14.1
break-separators=before
dock-collection-brackets=false
break-sequences=true
doc-comments=before
field-space=loose
let-and=sparse
sequence-style=terminator
type-decl=sparse
wrap-comments=true
let-and=sparse
space-around-records
space-around-lists
space-around-arrays
cases-exp-indent=2
break-cases=fit-or-vertical
indicate-nested-or-patterns=unsafe-no
parse-docstrings=true
module-item-spacing=sparse
wrap-fun-args=false