Do everything in Java…
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Fri Dec 5 12:35:50 PST 2014
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
More information about the Digitalmars-d
mailing list