Ticket #178 (closed defect)
wrong documented contract for check forms
Reported by: | pnkfelix | Owned by: | schematics |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | schematics/schemeunit.plt | Keywords: | doc |
Cc: | Version: | ||
Racket Version: | 4.1.4 |
Description
The check forms documented in SchemeUnit? API all say that checks produce #t.
See for example:
(check op v1 v2 [message]) → #t
However, it actually produces the result of applying the op (if the op produced a non-false result. For example:
> (check + 2 3) 5
Thus the → #t part of the documentation is misleading.
Change History
Note: See
TracTickets for help on using
tickets.