racket/collects/tests/plai/util.rkt
Robby Findler b0ed3b49e0 adjust plai test & co. to print only failing tests to stderr,
instead of printing all of them

also, adjust the plai test suites to cope with test results going
to two different places
2013-02-27 21:30:37 -06:00

8 lines
255 B
Racket

#lang racket/base
(provide with-both-output-to-string)
(define (with-both-output-to-string thunk)
(define sp (open-output-string))
(parameterize ([current-output-port sp]
[current-error-port sp])
(thunk))
(get-output-string sp))