You could redirect stdout to a file of your choosing and test against that.
Although ideally you would instead take as an argument to print some sort of output range or Appender. Then you could test against that instead.
rikki cattermole via Digitalmars-d-learn Thu, 03 Nov 2022 03:08:33 -0700
You could redirect stdout to a file of your choosing and test against that.
Although ideally you would instead take as an argument to print some sort of output range or Appender. Then you could test against that instead.