bitwizeshift / oxtest

🚧 A WIP rust unit-testing library
https://bitwizeshift.github.io/neotest
Apache License 2.0
0 stars 0 forks source link

Add matchers #8

Closed bitwizeshift closed 1 year ago

bitwizeshift commented 1 year ago

As an extension to #7, it'd be nice to have "matcher" logic, which can help simplify testing that values match a given expectation in a simplified way. These matchers can be based off of the way other testing libraries are written, such as Catch2 or GTest.

This should also be usable in an assertion, which would ideally generate a custom message. These will also be useful for mocking when we want expectations on types.