From 593161ddd818058e98fff95e1e3b394f65f51996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Fri, 24 Feb 2017 15:42:11 +0100 Subject: [PATCH] Documented the new vector matchers --- docs/matchers.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/matchers.md b/docs/matchers.md index e3ad64aa..93f6a27f 100644 --- a/docs/matchers.md +++ b/docs/matchers.md @@ -34,9 +34,10 @@ REQUIRE_THAT( str, ``` ## Built in matchers -Currently only a few string matchers are built-in: `StartsWith`, `EndsWith`, and `Contains` and `Equals`. -These each take an optional second argument for case sensitivity (defaulting to case sensitive). -More matchers will be coming - for example for testing elements in a vector. +Currently Catch has some string matchers and some vector matchers. +The string matchers are `StartsWith`, `EndsWith`, `Contains` and `Equals`. Each of them also takes an optional second argument, that decides case sensitivity (by-default, they are case sensitive). +The vector matchers are `Contains`, `VectorContains` and `Equals`. `VectorContains` looks for a single element in the matched vector, `Contains` looks for a set (vector) of elements inside the matched vector. + ## Custom matchers It's easy to provide your own matchers to extend Catch or just to work with your own types.