Been using Kotest for some time now and gotten pretty fluent at writing Kotest extensions and Matchers. Just this week I wrote slightly more complex Matcher that I needed to use in both a positive (
shouldBe ….
) and negative
(shouldNotBe …
) which made me realise every Kotest matcher is `invert()`able!
To my surprise neither Hamcrest nor AssertJ matcher have such capability. Really nice! 👏