thin-provisioning-tools/functional-tests/fmt/string-ports.scm
Joe Thornber 3e5de399a7 [functional tests] Remove dependency on the ThunderChez library.
I've just moved the relevant code into the functional-tests dir.
2020-04-30 12:07:42 +01:00

6 lines
127 B
Scheme

(define (call-with-output-string f)
(let ((port (open-output-string)))
(let () (f port))
(get-output-string port)))