Hi guys,
Is there a wrapper or something like that that I can place around a print 
expression so that it captures it and returns a string value? Something like: 

[capture-print [printf “hello, world!”)) => “hello, world!”

There are times when testing I’d like to capture the output and compare it with 
a check-equal? and suppress it from displaying in testing It could also be 
useful in other was possibly for delaying and manipulating printed output. 

Kevin

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CC768C18-C600-4136-8EF7-1A4AAC19BA25%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to