unittesting generic functions
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Thu Aug 14 13:38:31 PDT 2014
Idan Arye:
> Nested functions are not really "units" - they are
> implementation details.
It's not important how you call them. I'd still like some nice
way to test those "details" :-)
----------------
H. S. Teoh:
> When should such unittests be run, and how should the following
> code behave?
Is just after the post-condition of the enclosing function a good
moment to run them?
Bye,
bearophile
More information about the Digitalmars-d
mailing list