[plt-scheme] HtDP: Exercises 7.5.*

From: Todd O'Bryan (toddobryan at gmail.com)
Date: Sat Sep 13 12:23:48 EDT 2008

Realize that the book is 5 years behind the latest tools, so you'll find
some inconsistencies and weirdness.

You can check that errors are thrown by using the (check-error ...) version
of test cases. Here's a working example:

(define (blah x)
  (error 'blah "undefined"))

(check-error (blah 5) "blah: undefined")


On Fri, Sep 12, 2008 at 8:38 PM, Grant Rettke <grettke at acm.org> wrote:

> Hi,
> Was sub-chapter 7.5 a point of contention?
> I like contracts, but it doesn't feel like it fits.
> Evidence:
> * Less than 3 pages
> * We are encouraged to raise errors, but we haven't got a unit-testing
> tool to actually check if they were raised.
> I argued that the goal is to show that we grok how to provide checked
> versions of our functions to clients, so function documentation and
> unit tests aren't required here.
> Best wishes,
> Grant
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080913/112c5064/attachment.html>

Posted on the users mailing list.