1 #ifndef HAMCRESTQT_MATCHER_H
2 #define HAMCRESTQT_MATCHER_H
4 #include "selfdescribing.h"
10 namespace HamcrestQt {
34 virtual bool matches(
const T &item)
const = 0;
49 virtual QString toString()
const = 0;
54 #endif // HAMCRESTQT_MATCHER_H
A description of a Matcher.
Definition: description.h:17
A matcher over acceptable values.
Definition: matcher.h:21
virtual bool matches(const T &item) const =0
Evaluates the matcher for argument item.
virtual void describeMismatch(const T &item, Description &mismatchDescription) const =0
Generate a description of why the matcher has not accepted the item.
The ability of an object to describe itself.
Definition: selfdescribing.h:11