Re: [racket-users] eval:check and floating-point precision

2016-11-27 Thread luis.osa.gdc
Thanks, Pierpaolo, but wouldn't that also render as documentation? I don't want to show an example where (good-enough (t-test ...) ) is documented, I just want (t-test ...) to show up to the user. -- You received this message because you are subscribed to the Google Groups "Racket Users"

Re: [racket-users] eval:check and floating-point precision

2016-11-26 Thread Pierpaolo Bernardi
On Sat, Nov 26, 2016 at 11:37 AM, luis.osa.gdc wrote: > Hi, everyone! > ``` > (check-= (t-test bacteria-a bacteria-b) 13.0 0.1) > ``` > > In short: is there a way to specify tolerance in `eval:check`? Perhaps, instead of checking directly the result of t-test you can

[racket-users] eval:check and floating-point precision

2016-11-26 Thread luis.osa.gdc
Hi, everyone! I am writing a simple statistical package for Racket, and I would like to have tests within my Scribble documentation (as well as Rackunit tests in the implementation modules). For the Scribble tests, I am using `eval:check`. But I have noticed that the tests do not pass unless