rackunit: fix tests

merge to 5.2
This commit is contained in:
Ryan Culpepper 2011-10-08 01:07:08 -06:00
parent 9ab6a93127
commit 18b3899e6a

View File

@ -314,5 +314,12 @@
(parameterize ([current-check-around (lambda (t) (set! x 'foo))])
(check-eq? 'a 'b))
(check-eq? x
'foo)))))
'foo)))
(test-case
"current-check-handler is used by checks"
(check-eq? (let/ec escape
(parameterize ([current-check-handler (lambda (e) (escape 'foo))])
(check-eq? 'a 'b)))
'foo))
))