Huh, invariant() {...} ?

Robert Fraser fraserofthenight at gmail.com
Fri Jun 29 01:13:25 PDT 2007


If it compiles under 2.001, any way you could post it up here, please? Sounds useful. I've been eying Thomas Khune's UnittestWalker which is powerful, but nothing like a real language extension.

David B. Held Wrote:

> Ary Manzana wrote:
> > [...]
> > unittest() {
> > }
> > 
> > Which leaves the possibility to specify something between the parens:
> > 
> > unittest("List adds correctly an element") {
> > }
> > 
> > and then when an assert fails within a unittest, that message could also 
> > be displayed.
> > [...]
> 
> I proposed something very much like that, and even coded up the 
> front-end portion, so that one could construct a library that is a 
> worthy competitor to JUnit et al, but nobody was interested (Andrei even 
> went so far as to mock it!...but I don't think his xUnit-foo is up to 
> snuff ;).
> 
> Dave




More information about the Digitalmars-d mailing list