: 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
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
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
3 matches
Mail list logo