The only implemented matchers at the moment are:
Any: matches any argument
Eq matches based on Arg: PartialEq
EqAgainst matches based on Arg: PartialEq<Against>
We could implement other matchers so faux users don't have to handwrite their own matchers.
Quick ideas:
<
<=
>
>=
!
||
&&
- contains
custom closure. Unsure if this is all that much better than a just implementing ArgMatcher though.
We can first decide what matchers to create and then see if when! can come up with an easy to use syntax for it.
cc: @muscovite
The only implemented matchers at the moment are:
Any: matches any argumentEqmatches based onArg: PartialEqEqAgainstmatches based onArg: PartialEq<Against>We could implement other matchers so
fauxusers don't have to handwrite their own matchers.Quick ideas:
<<=>>=!||&&custom closure. Unsure if this is all that much better than a just implementingArgMatcherthough.We can first decide what matchers to create and then see if
when!can come up with an easy to use syntax for it.cc: @muscovite