testimony
assert_error(fn, expected_pattern, msg)
fn
expected_pattern
msg
Assert that a function raises
Calls fn under pcall and raises when it returns, or when its error does not match expected_pattern.
pcall