How to test a default `error(...)` raising method's message

It would be nice if we can write, e.g.,

err = @test_throws SomeExceptionType f()
@test occursin("some error message", sprint(showerror, err))
1 Like