Matcher documentation

This commit is contained in:
Phil Nash
2017-02-14 09:15:21 +00:00
parent 2081caa452
commit d4ae1b18c0
2 changed files with 103 additions and 3 deletions

View File

@@ -105,13 +105,11 @@ REQUIRE_NOTHROW([&](){
## Matcher expressions
To support Matchers a slightly different form is used. Matchers will be more fully documented elsewhere. *Note that Matchers are still at early stage development and are subject to change.*
To support Matchers a slightly different form is used. Matchers have [their own documentation](matchers.md).
* **REQUIRE_THAT(** _lhs_, _matcher expression_ **)** and
* **CHECK_THAT(** _lhs_, _matcher expression_ **)**
Currently only string matchers are implemented and consist of: `Contains`, `Equals`, `StartsWith` and `EndsWith`.
Matchers can be composed using `&&`, `||` and `!` operators.
---