racket/collects/tests/rackunit/pr10950.rkt
Matthew Flatt b95b1b9366 Revert "Fixing Rackunit tests after alignment"
This reverts commit 4497c8ce5e,
because the tests were correctly reporting a bug that I
introduced.
2012-08-15 09:34:17 -06:00

23 lines
721 B
Racket

#lang racket/base
(require rackunit
rackunit/text-ui
racket/port
tests/eli-tester)
(define output
(with-output-to-string
(lambda ()
(parameterize ([current-error-port (current-output-port)])
(define-check (check3)
(fail-check))
(run-tests (test-suite "tests" (let ((foo check3)) (foo))))))))
(test
(regexp-match
(regexp (format "~a.*~a.*~a"
(regexp-quote "--------------------\ntests > #f\nUnnamed test \nFAILURE\nname: check3\nlocation: ")
(regexp-quote "pr10950.rkt:14:51")
(regexp-quote "0 success(es) 1 failure(s) 0 error(s) 1 test(s) run\n")))
output))