crow/test-util.crow (source)

Functions for use in tests.

expected-equal record exception variant-member

show string(a expected-equal)

is[t] void(a t, b t) t equal, (json, t) to

Asserts the the values are equal.

should-throw void()

Use this like so:
try
<< some code >>
should-throw
catch expected-exception x
<< assertions, or just '()' >>