[racket] unit test for close enough values

From: J G Cho (gcho at fundingmatters.com)
Date: Sat Dec 21 18:34:47 EST 2013

That looks very useful.


On Sat, Dec 21, 2013 at 6:23 PM, Greg Hendershott <greghendershott at gmail.com
> wrote:

> > check-= wants single value but unfortunately my values are wrapped in
> set of vectors.
>
> Oh I didn't notice that.
>
> In that case you could define your own check -- that looks inside the
> sets and vectors to do the approximate equality test -- using the
> second variant of `define-binary-check` as described here:
>
>
> http://docs.racket-lang.org/rackunit/api.html#%28form._%28%28lib._rackunit%2Fmain..rkt%29._define-binary-check%29%29
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131221/b5fd0bfa/attachment.html>

Posted on the users mailing list.