Huh, invariant() {...} ?

David B. Held dheld at codelogicconsulting.com
Thu Jun 28 23:36:10 PDT 2007


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