Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matchers #3

Open
30 of 33 tasks
DNKpp opened this issue Apr 25, 2024 · 0 comments · Fixed by #6, #41, #62, #67 or #82
Open
30 of 33 tasks

Matchers #3

DNKpp opened this issue Apr 25, 2024 · 0 comments · Fixed by #6, #41, #62, #67 or #82
Labels
enhancement New feature or request

Comments

@DNKpp
Copy link
Owner

DNKpp commented Apr 25, 2024

Matchers can be used:

  • directly as expectation argument
  • as explicit expectation
    • expect::arg<n>
    • expect::args<ns...>
    • expect::all_args

Generic Matchers:

  • matcher::PredicateMatcher
    • matcher::InvertiblePolicy
    • matcher::ConjunctionPolicy
    • matcher::DisjunctionPolicy

Basic Matchers

  • matches::_
  • matches::eq
  • matches::ne
  • matches::lt
  • matches::le
  • matches::gt
  • matches::ge
  • matches::NaN
  • matches::approx_abs
  • matches::approx_rel
  • matches::instance
  • matches::predicate

String Matchers

  • matches::str::eq
  • matches::str::starts_with
  • matches::str::ends_with
  • matches::str::contains
  • matches::str::regex

Range matchers

  • matches::range::eq
  • matches::range::unordered_eq
  • matches::range::is_sorted
  • matches::range::is_empty
  • matches::range::has_size
  • matches::range::each_element
  • matches::range::any_element
@DNKpp DNKpp added the enhancement New feature or request label Apr 25, 2024
@DNKpp DNKpp linked a pull request Apr 28, 2024 that will close this issue
@DNKpp DNKpp linked a pull request Oct 3, 2024 that will close this issue
This was linked to pull requests Oct 20, 2024
@DNKpp DNKpp linked a pull request Dec 17, 2024 that will close this issue
@DNKpp DNKpp linked a pull request Jan 8, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment