Re: Unit-tests with stderr / stdout

2017-09-09 Thread Ky-Anh Huynh via Digitalmars-d-learn
On Saturday, 9 September 2017 at 03:37:58 UTC, Ky-Anh Huynh wrote: Hi, As a system administrator I often have some small scripts/ programs that consume input and produce output for other system utilities. Something like `my_foo_program | awk ... | other_program`. As the tools write to

Unit-tests with stderr / stdout

2017-09-08 Thread Ky-Anh Huynh via Digitalmars-d-learn
Hi, As a system administrator I often have some small scripts/ programs that consume input and produce output for other system utilities. Something like `my_foo_program | awk ... | other_program`. As the tools write to STDOUT/STDERR, I haven't found a way to write unit tests for them. Should