New fluent asserts library for D
Jonathan Marler
johnnymarler at gmail.com
Fri Mar 15 07:11:38 UTC 2019
On Friday, 15 March 2019 at 03:04:39 UTC, Nick Papanastasiou
wrote:
> Hey guys!
>
> My new job has some room for me to use D at work, so before I
> do anything serious there I've been trying to work through some
> personal projects. The vast majority of my day job is Java, and
> I've really been enjoying the AssertJ library
> (http://joel-costigliola.github.io/assertj/) in my unit tests,
> and thought it was a shame that I couldn't find something
> similar for D.
>
> Here's what I've come up with so far:
> https://github.com/NickPapanastasiou/describe
>
> Obviously still in very early stages. At the moment, docs are
> lacking and failure messages need to be made clear, but it's
> fairly usable. Any and all feedback is welcome and appreciated!
Why not make AssertBuilder a struct instead of a class? Doing so
allows it to be used with @nogc/betterC, and you're not making
more garbage for the GC to clean up later.
More information about the Digitalmars-d
mailing list