crow/test-util.crow (source)
Functions for use in tests.
expected-equal record exception variant-member
exception variant-membershow string(a expected-equal)
is[t] void(a t, b t) t equal, (json, t) to
equaltoAsserts the the values are equal.
should-throw void()
Use this like so:
try
<< some code >>
should-throw
catch expected-exception x
<< assertions, or just '()' >>