Last active
December 14, 2015 03:59
-
-
Save takikawa/5025401 to your computer and use it in GitHub Desktop.
current-check-handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #lang racket | |
| (require rackunit) | |
| (define old-handler (current-check-handler)) | |
| (parameterize ([current-check-handler | |
| (λ (exn) | |
| ;; put custom processing here | |
| (displayln "do something") | |
| (old-handler exn))]) | |
| (check-equal? 3 4) | |
| (check-equal? 4 8)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment