8namespace CppSpec::Matchers {
15template <
typename A,
typename E>
16class BeLessThan :
public MatcherBase<A, E> {
19 bool match()
override {
return Util::less(this->actual(), this->expected()); }
20 bool negated_match()
override {
return Util::greater_equal(this->actual(), this->expected()); }
21 std::string verb()
override {
return "be less 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 less(const A &a, const B &b)
a < b, by value when both are integers (std::cmp_less, so a negative signed value is below any unsign...
Definition util.hpp:232
constexpr bool greater_equal(const A &a, const B &b)
a >= b, by value when both are integers (std::cmp_greater_equal), and with >= otherwise.
Definition util.hpp:268