Skip to content

Instantly share code, notes, and snippets.

@takikawa
Last active December 14, 2015 03:59
Show Gist options
  • Select an option

  • Save takikawa/5025401 to your computer and use it in GitHub Desktop.

Select an option

Save takikawa/5025401 to your computer and use it in GitHub Desktop.
current-check-handler
#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