std.unittests for (final?) review
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Jan 6 07:37:16 PST 2011
On 1/6/11 3:57 AM, bearophile wrote:
> Andrei:
>
>> One more thing. Since assert() is available and useful outside
>> unittests, I don't see a reason for which assertPred and friends should
>> only be available during unittesting. I can sure use them in regular code.
>
> I guess assertPred creates statistics to be printed at the end of the unittests? I don't think mixing the two groups of things is good.
Oh, and if assertXxxx doesn't do what assert does (throw an error in
case things go wrong) it should not be called such. Call it expectXxx.
Andrei
More information about the Digitalmars-d
mailing list