Let's bikeshed std.experimental.testing assertions/checks/whatchamacallits

Atila Neves via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 2 05:22:30 PDT 2015


On Wednesday, 1 July 2015 at 19:38:20 UTC, Jacob Carlborg wrote:
> On 01/07/15 10:40, Atila Neves wrote:
>
>> [...]
>
> You could write "shouldBe.gt(value)".
>
>> [...]
>
> In every project I have used RSpec I have added custom 
> matchers/assertions. Just a couple of days ago I added a custom 
> matcher to one of my projects:
>
> [...]

Ah, makes sense. I think I'm convinced now. The UFCS as an 
extension mechanism could indeed be handy.

Atila



More information about the Digitalmars-d mailing list