On 12/5/2014 8:36 AM, H. S. Teoh via Digitalmars-d wrote:
As with all things, I'm skeptical of blindly applying some methodology
even when it's not applicable or of questionable benefit.

In general I agree with you, but for unittests a methodology of using it with a coverage analyzer to ensure all code paths are executed is extremely effective.

I just found two bugs in dmd's lexer.c merely by writing tests to cover unexercised code.

https://github.com/D-Programming-Language/dmd/pull/4191

Reply via email to