How to test a function that does write!, by sending a Vec in with Box
I’d like to have a function that either writes to stdout or to a Vec. This is for an interactive CLI I would like to write tests for.
I’d like to have a function that either writes to stdout or to a Vec. This is for an interactive CLI I would like to write tests for.