Unit Threaded - a unit testing library for D
Nick Sabalausky
SeeWebsiteToContactMe at semitwist.com
Tue Aug 27 14:46:16 PDT 2013
On Tue, 27 Aug 2013 17:42:19 +0200
Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
>
> > The only tool is assert, and you have to write your own
> > assert messages (no assertEqual, assertNull, etc.)
>
> Currently we have assertThrown/assertNotThrown, but assertEqual and
> friends are easy to implement and we thought about including them.
> However it needs more community support before it's included in Phobos
> (i.e. more people need to want these).
>
Someone actually crated all of those and made a pull request to Phobos,
but it was rejected because people decided it was better to improve the
regular assert to be able to display such information automatically.
Predictably, these hypothetical improvements to assert never actually
got made (it's been probably around a couple years now), so that's why
we've still got nothing like that in the stock DMD/Phobos.
I do wish we weren't in the habit of letting "perfect" get in the way of
progress.
More information about the Digitalmars-d-announce
mailing list