[racket-dev] Racktest was: OMG the thread that will never die about testing

From: Ryan Culpepper (ryanc at ccs.neu.edu)
Date: Sun Feb 20 20:56:53 EST 2011

On 02/20/2011 06:43 PM, Robby Findler wrote:
> One thing I would also like to be able to do, based on this
> discussion, is make a rackunit/base library that has very minimal
> dependencies and provides a minimal testing infrastructure. I'd be
> happy with something like check-equal? only at the top-level, ish.
> Is that something that your changes would affect?

You can already do that:

   #lang racket
   (require rackunit)
   (test-equal? "fruit equivalence" 'apple 'orange)
   (check-equal? 'apple 'orange)
   (for ([fruit '(orange pear)])
     (check-equal? fruit 'orange))

How minimal do you need the dependencies to be?


Posted on the dev mailing list.