[plt-scheme] How to add check-expect to Pretty Big

From: Geoffrey S. Knauth (geoff at knauth.org)
Date: Sun Feb 7 08:30:18 EST 2010

What I use, albeit with with #lang scheme, is:

(require schemeunit)
(check-pred a-boolean-function (a-function some-parameters ...))
(check-equal? (a-test parameters ...) expected-result)

On Feb 7, 2010, at 01:32, Barry Brown wrote:

> How can I add the functionality of HtDP's testing (check-expect, et al) to Pretty Big?
> 
> I tried (require htdp/testing), but when I run a few tests I run into a couple of difficulties:
> 
> First, tests must come after the function definition. This isn't really a problem, but it differs from the HtDP languages.
> 
> Second, I get output for each of the tests, rather than a summary:
> The only test passed!
> Both tests passed!
> All 3 tests passed!
> 
> What do I need to do make Pretty Big act more like HtDP when it comes to testing?
> 
> Thanks!_________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme



Posted on the users mailing list.