[plt-scheme] Re: PLT Scheme v370
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.)