Sha256: bfde2d559ed9356f547e0d47319c0a71185fdbe012d0680c9e16546517ec7936
Contents?: true
Size: 489 Bytes
Versions: 2
Compression:
Stored size: 489 Bytes
Contents
#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
Version data entries
2 entries across 2 versions & 1 rubygems