Re: [racket] running test-suites in module+ tests

2013-08-27 Thread J. Ian Johnson
: Re: [racket] running test-suites in module+ tests Thanks. I swear I tried that, and I couldn't get it to work. It's a bit awkward, though, because of the mixed output. "raco test" has a very simplied (and parseable) test output. Mixing it with (run-tests) has a mixed outpu

Re: [racket] running test-suites in module+ tests

2013-08-26 Thread Chad Albers
Thanks. I swear I tried that, and I couldn't get it to work. It's a bit awkward, though, because of the mixed output. "raco test" has a very simplied (and parseable) test output. Mixing it with (run-tests) has a mixed output. On failure, (run-test) gives the number of tests failed. And then

Re: [racket] running test-suites in module+ tests

2013-08-24 Thread Matthias Felleisen
Does this help: > #lang racket > > (module+ test > (require rackunit)) > > ;; --- > > (module+ test > (define-test-suite for-f > (check-equal? (f 10) 10) > (check-equal? (f 11) 12))) > > (define (f x) > x) > > > (module+ test > (require rackunit/text-ui) > (run-tests fo