[racket] Rackunit and test-case
Hi all,
The (test-case) form in Rackunit accepts a variable number of
expressions as the test body. This can be a problem if one writes (as
has happened in the wild at least once to my knowledge):
(define-test-suite my-suite
(test-case
"Make sure foo returns 3"
(foo)
3))
This wouldn't be a problem if a (begin) were mandatory for
multi-expression test cases: the above form would be a syntax error in
that case.
Should rackunit be changed to accept (test-case name expr) only?
Regards,
Tony