document contract-exercise

This commit is contained in:
Robby Findler 2014-05-06 21:28:37 -05:00
parent 0f16f31db9
commit 2a7a6f3897

View File

@ -2778,5 +2778,11 @@ generators) or because there is not enough fuel. In either case, the
thunk @racket[fail] is invoked.
}
@defproc[(contract-exercise [val any/c]) void?]{
Attempts to get @racket[val] to break its contract (if any).
Uses @racket[value-contract] to determine if @racket[val] has a contract and,
if it does, uses information about the contract's shape to poke and prod
at the value. For example, if the value is function, it will use the contract
to tell it what arguments to supply to the value.
}