[racket] tests/eli-tester feedback (Was: Racket unit testing)
On Feb 13, 2011, at 7:30 PM, Eli Barzilay <eli at barzilay.org> wrote:
> ... the
> bottom line is that the test of "non-#f" is very common -- so I really
> don't want to force people to write some verbose
>
> (test (and E #t) => #t)
>
> or
>
> (test (not (not E)) => #t)
>
> or even
>
> (test (true? E) => #t)
But this "verbose" solution is still not significantly longer than the nested "test" you propose. In any case, wouldn't
(test E /=> #f)
be even shorter and clearer?
>
Stephen Bloch
sbloch at adelphi.edu