[plt-scheme] Re: PLT Scheme v370

From: Anton van Straaten (anton at appsolutions.com)
Date: Thu May 24 18:37:40 EDT 2007

Chris Warrington wrote:
> Try this instead:
> (require (lib "testing.ss" "htdp"))
> 
> (check-expect (+ 1 1) 2)
> (check-expect (+ 1 1) 3)
> (check-error (/ 1 0) "/: division by zero")
> (check-error (/ 1 2) "/: division by zero")
> (generate-report)
> 
> That's pretty nice. However, I can't seem to copy text from the
> results window.

You could always use the approach described in this story:

http://worsethanfailure.com/Articles/The-Indexer.aspx

(If you're curious but in a hurry, skim down to the numbered list.)


Posted on the users mailing list.