#ifndef BANDIT_BEGREATERTHANOREQUAL_H #define BANDIT_BEGREATERTHANOREQUAL_H #include "Matcher.h" namespace bandit { namespace Matchers { template class BeGTE : public Matcher { public: explicit BeGTE(const T& expectedValue) : Matcher(), _expectedValue(expectedValue) {} template bool matches(const U& actualValue) const { return actualValue >= _expectedValue; } protected: virtual std::string failure_message_end() const { std::ostringstream ss; ss << "be greater than or equal to <" << _expectedValue << ">"; return ss.str(); } private: const T& _expectedValue; }; template BeGTE be_gte(const T& expectedValue) { return BeGTE(expectedValue); } template BeGTE be_greater_than_or_equal_to(const T& expectedValue) { return be_gte(expectedValue); } }} #endif // BANDIT_BEGREATERTHANOREQUAL_H