Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
087a053c49 |
|
@ -10,10 +10,10 @@
|
|||
@title{Checks}
|
||||
|
||||
Checks are the basic building block of RackUnit. A check
|
||||
checks some condition. If the condition holds the check
|
||||
evaluates to @racket[(void)]. If the condition doesn't hold the
|
||||
check raises an instance of @racket[exn:test:check] with
|
||||
information detailing the failure.
|
||||
checks some condition and always
|
||||
evaluates to @racket[(void)]. If the condition doesn't hold, the
|
||||
check will report the failure (see @racket[current-check-handler]
|
||||
for customizing how failures are handled).
|
||||
|
||||
Although checks are implemented as macros, which is
|
||||
necessary to grab source location, they are conceptually
|
||||
|
|
|
@ -20,7 +20,8 @@ of these parameters.
|
|||
@defparam[current-check-handler handler (-> any/c any)]{
|
||||
|
||||
Parameter containing the function that handles exceptions
|
||||
raised by check failures. The default value is @racket[raise].
|
||||
raised by check failures. The default value is a procedure
|
||||
that will display the exception data in a user-friendly format.
|
||||
}
|
||||
|
||||
@defparam[current-check-around check (-> (-> any) any)]{
|
||||
|
|
Loading…
Reference in New Issue
Block a user