There is test/exn that you can use to check for error messages, for example:
(test/exn (error "foo") "foo")
but note that the docs indicate that it can only test those exceptions that were explicitly affected by your code. The idea is that your code should check for errors and raise them, otherwise you have an error.
(For testing the "real" racket code, see rackunit .
Eli barzilay
source share