Example in the overview

bearophile bearophileHUGS at lycos.com
Fri May 14 17:38:50 PDT 2010


Ary Borenszweig:
> A small observation: count +=1 is performed for i = 0, hmmm...

It lacks unit tests. A basic unit testing can catch that bug.
Recently I have ready a quote: "If it has no unit tests then it's broken". Experience shows me that this is more often true than false.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list