Skip to content

More matchers #34

@nrxus

Description

@nrxus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions