[racket] unit test for close enough values

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

check-= wants single value but unfortunately my values are wrapped in set
of vectors.




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

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131221/19a1b5c2/attachment.html>

Posted on the users mailing list.