version(unittest) in imported modules

Peter Alexander peter.alexander.au at gmail.com
Mon Mar 3 00:50:44 PST 2014


On Monday, 3 March 2014 at 07:29:10 UTC, Ivan Kazmenko wrote:
> On Sunday, 2 March 2014 at 21:03:12 UTC, Dicebot wrote:
>> On Sunday, 2 March 2014 at 19:37:47 UTC, Peter Alexander wrote:
>>> Tests on imported modules are not always run otherwise 
>>> everyone would be constantly running phobos tests. rdmd is 
>>> special in that automatically compiles imports.
>>
>> Hm, I am surprised to find that you are right. That does not 
>> make sense. static asserts from Phobos should trigger.
>
> Somewhat off topic, but this makes me wonder, what is the 
> intended way of resolving these issues?  (My guess is that they 
> are what triggered the discussion anyway.)

Yes, that is what triggered the discussion :-)  I'd like to run 
those tests only when phobos unit tests are running but I can't 
think of any way to conditionally enable the tests.


More information about the Digitalmars-d mailing list