1 #ifndef HAMCRESTQT_STRINGCONTAINS_H
2 #define HAMCRESTQT_STRINGCONTAINS_H
4 #include <QSharedPointer>
7 #include "substringmatcher.h"
20 virtual bool evalSubstringOf(
const QString &str)
const;
21 virtual QString relationship()
const;
35 inline QSharedPointer<Matcher<QString> >
containsString(
const QString &substring)
37 return QSharedPointer<Matcher<QString> >(
new StringContains(substring));
41 inline QSharedPointer<Matcher<QString> >
containsString(
const char *substring)
43 return QSharedPointer<Matcher<QString> >(
new StringContains(QString(substring)));
48 #endif // HAMCRESTQT_STRINGCONTAINS_H
QSharedPointer< Matcher< QString > > containsString(const QString &substring)
Creates a matcher that matches if the examined QString contains the specified QString anywhere...
Definition: stringcontains.h:35
Definition: substringmatcher.h:9
Tests if the argument is a string that contains a substring.
Definition: stringcontains.h:14