blob: 6e034d1014252f6aa5cbcccc8ffb00ef559645ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef BANDIT_BENULL_H
#define BANDIT_BENULL_H
#include "Matcher.h"
namespace bandit { namespace Matchers {
class BeNull : public Matcher
{
public:
BeNull() : Matcher() {}
template<typename U>
bool matches(U *const & actualValue) const
{
return !actualValue;
}
protected:
std::string failure_message_end() const
{
return std::string("be nil");
}
};
static const BeNull be_null = BeNull();
}}
#endif // BANDIT_BENULL_H
|