1 #ifndef HAMCRESTQT_STRINGENDSWITH_H
2 #define HAMCRESTQT_STRINGENDSWITH_H
4 #include <QSharedPointer>
7 #include "substringmatcher.h"
20 virtual bool evalSubstringOf(
const QString &str)
const;
21 virtual QString relationship()
const;
34 inline QSharedPointer<Matcher<QString> >
endsWith(
const QString &suffix)
36 return QSharedPointer<Matcher<QString> >(
new StringEndsWith(suffix));
40 inline QSharedPointer<Matcher<QString> >
endsWith(
const char *suffix)
42 return QSharedPointer<Matcher<QString> >(
new StringEndsWith(QString(suffix)));
47 #endif // HAMCRESTQT_STRINGENDSWITH_H
Tests if the argument is a string that ends with a substring.
Definition: stringendswith.h:14
QSharedPointer< Matcher< QString > > endsWith(const QString &suffix)
Creates a matcher that matches if the examined QString ends with the specified QString.
Definition: stringendswith.h:34
Definition: substringmatcher.h:9