On Mar 30, 2015, at 1:58 PM, Alexis King <lexi.lam...@gmail.com> wrote:

> The check-equal? function and friends don't do anything special to delimit 
> control, so failing a check will abort the whole program if it isn't 
> contained within a test case. You can use the test-case or test-begin forms 
> to limit the extent of fail-check (which just raises an exn:test:check 
> exception).
> 
> (test-begin
>  (check-equal? (f x) 4))
> 
> Alternatively, you might want to take a look at define-simple-check, 
> define-binary-check, and define-check, which allow that sort of control 
> without explicitly wrapping checks in test cases.

Silly me. Thanks!

John

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to