Unit tests and verifying pre/post-conditions and invariants
Jonathan M Davis
jmdavisprog at gmail.com
Mon Aug 16 15:27:27 PDT 2010
On Monday, August 16, 2010 14:46:47 Ali Çehreli wrote:
> I've used the same. :) We should have something like ensure_throws:
>
> ensure_throws!SpecificException(functionThatShouldThrow(badInput));
>
> Perhaps some of the existing unit test libraries already have that.
http://d.puremagic.com/issues/show_bug.cgi?id=4644
More information about the Digitalmars-d-learn
mailing list