Sha256: 3860bfb491baa70381b5ed166e4146b8975beb9fd1a2953a22ae73d58ac6eca4
Contents?: true
Size: 896 Bytes
Versions: 2
Compression:
Stored size: 896 Bytes
Contents
#ifndef BANDIT_MUST_H #define BANDIT_MUST_H #include "ValueProxy.h" namespace bandit { namespace Matchers { struct ValueMarker { const char* filename; int lineNumber; }; template<typename T> const ValueProxy<T> operator,(const T& value, const ValueMarker& marker) { return ValueProxy<T>(marker.filename, marker.lineNumber, value); } template<typename T> const MatchProxy<T> operator,(const ValueProxy<T>& value, bool negate) { return negate ? value.to_not : value.to; } template<typename T, typename MatcherType> void operator,(const MatchProxy<T>& matchProxy, const MatcherType& matcher) { matchProxy(matcher); } }} #define must ,bandit::Matchers::ValueMarker{__FILE__, __LINE__},false, #define must_not ,bandit::Matchers::ValueMarker{__FILE__, __LINE__},true, #endif //BANDIT_MUST_H
Version data entries
2 entries across 2 versions & 1 rubygems