Unit testing a function returning void

rikki cattermole rikki at cattermole.co.nz
Thu Nov 3 10:02:56 UTC 2022


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.


More information about the Digitalmars-d-learn mailing list