[racket] Rackunit and test-case

From: Tony Garnock-Jones (tonyg at ccs.neu.edu)
Date: Wed Sep 7 16:51:03 EDT 2011

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
     "Make sure foo returns 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?


Posted on the users mailing list.