Hamcrest-Qt
0.0.1
Hamcrest matchers for C++/Qt
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Documents
GitHub
Hamcrest-Qt
src
core
tostring_p.h
1
#ifndef HAMCREST_TOSTRING_P_H
2
#define HAMCREST_TOSTRING_P_H
3
4
#include <qtestcase.h>
5
#include "matcher.h"
6
7
namespace
QTest
8
{
9
10
inline
char
* toString(
bool
value)
11
{
12
return
value ? qstrdup(
"true"
) : qstrdup(
"false"
);
13
}
14
15
template
<
typename
T>
16
inline
char
* toString(
const
QSharedPointer<
HamcrestQt::Matcher<T>
> &matcher)
17
{
18
return
qstrdup(matcher->toString().toLatin1());
19
}
20
21
}
// namespace QTest
22
23
#endif // HAMCREST_TOSTRING_P_H
HamcrestQt::Matcher
A matcher over acceptable values.
Definition:
matcher.h:21
Generated on Wed Dec 11 2013 19:12:52 for Hamcrest-Qt by
1.8.5