[racket] unit test for close enough values

From: Greg Hendershott (greghendershott at gmail.com)
Date: Sat Dec 21 17:04:17 EST 2013

On Sat, Dec 21, 2013 at 3:42 PM, J G Cho <gcho at fundingmatters.com> wrote:
> FAILURE
> actual:     #<set: #(-0.7071067811865476 0.7071067811865476)
> #(0.7071067811865476 -0.7071067811865476)>
> expected:   #<set: #(-0.7071067811865475 0.7071067811865475)
> #(0.7071067811865475 -0.7071067811865475)>
>
> Is there something like "check-close-enough?" in rackunit?

I think you want check-=

http://docs.racket-lang.org/rackunit/api.html#%28def._%28%28lib._rackunit%2Fmain..rkt%29._check-~3d%29%29

Posted on the users mailing list.