Unit tests in D

BCS none at anon.com
Thu May 6 06:48:06 PDT 2010


Hello Don,

> My point could be solved with some level of run-time reflection. Or
> perhaps by allowing unittest{} as a (static) interface member.

Might something ad-hoc like this work?

interface Foo { ... }
class TestFoo(T) if(is(T : Foo))
{
   unittest
   {
   }
}

-- 
... <IXOYE><





More information about the Digitalmars-d mailing list