Ticket #178 (closed defect)

Opened 15 years ago

Last modified 14 years ago

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


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)

Thus the → #t part of the documentation is misleading.

Change History

Changed 14 years ago by schematics

  • status changed from new to closed

Fixed in svn. Thanks.

Note: See TracTickets for help on using tickets.