See `convert-compile-time-error` and `convert-syntax-error` from the
`syntax/macro-testing` library. I should fix the docs to say that the
type of the exception can change, so they work best for testing the
contents of the exception message.
For examples, there are tests for invalid uses of sy
Take a look at convert-compile-time-error and convert-syntax-error
from syntax/macro-testing[1], which make it possible to defer syntax
errors to runtime. The docs include examples for using them with
rackunit’s check-exn form to make assertions about syntax errors.
[1]: http://docs.racket-lang.or
2 matches
Mail list logo