[plt-scheme] HTDP Exercise 6.6.2

From: Marco Morazan (morazanm at gmail.com)
Date: Wed Feb 25 14:44:19 EST 2009

On Wed, Feb 25, 2009 at 1:02 PM, aditya shukla
<adityashukla1983 at gmail.com> wrote:
> Can you please explain how to write test cases using check-expect?
>
> Aditya
>

Go to Help --> Help Desk and search for check-expect.

Example:

(define (incr x) (add1 x))

(check-expect (incr 0) 1)
(check-expect (incr 256) 257)


-- 

Cheers,

Marco


Posted on the users mailing list.