[Issue 12269] Unittest within template struct scope is not executed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 28 05:21:41 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12269



--- Comment #7 from growlercab at gmail.com 2014-02-28 05:21:40 PST ---
The compiler can't execute the unit test because it can't POSSIBLY know what to
instantiate the template with. It's like asking someone to verify that a
mathematical equation is sound, but leaving half of the variables as blanks.
---

No, I'm arguing the unittest should not be part of the equation as they are now
relying on template parameters (when in template scope). 

A unittest should be forced to define all variables to test the equation with,
irrespective of where it is defined.

But it is minor and I may not be seeing the bigger picture here so I'll drop it
and move on :D

Thanks again,
ed

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list