8namespace CppSpec::Matchers {
15template <
typename A,
typename E>
16class BeGreaterThan :
public MatcherBase<A, E> {
19 bool match()
override {
return Util::greater(this->actual(), this->expected()); }
20 bool negated_match()
override {
return Util::less_equal(this->actual(), this->expected()); }
21 std::string verb()
override {
return "be greater than"; }
Wraps the target of an expectation.
Definition expectation.hpp:48
Definition have_error.hpp:9
Contains the base class for all Matchers.
Utility functions and classes.
constexpr bool greater(const A &a, const B &b)
a > b, by value when both are integers (std::cmp_greater), and with > otherwise.
Definition util.hpp:256
constexpr bool less_equal(const A &a, const B &b)
a <= b, by value when both are integers (std::cmp_less_equal), and with <= otherwise.
Definition util.hpp:244