test-print function added by misilver on Sat Jun 18 22:54:49 2016

(define (test-print name expected expression)
  (test name expected (with-output-to-string (lambda () expression))))

(test-print "fake example" "hi\n" (print "hi"))
hi
fake example ......................................................... [ FAIL]
    expected "hi\n" but got ""
    (with-output-to-string (lambda () expression))
FAIL