Unless I’m misreading docs and source code, there’s currently no handin utility 
function that allows checking of the exception message.

I propose adding !test/exn/msg, that accepts a regexp in addition to its other 
argument, and succeeds only if the message returned in the exception matches 
the given regexp. Essentially, just like rackunit’s `check-exn`, except that no 
thunk is required on the `actual` arg.

I’d be happy to submit a pull request for this, if you folks think it makes 
sense. (Also, I’m open to suggestions on the ordering of the arguments.)

Thoughts?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to