C++Spec 1.0.0
BDD testing for C++
All Classes Files Functions Variables Pages Concepts
be_less_than.hpp
Go to the documentation of this file.
1
2#pragma once
3#include <string>
4
6
7namespace CppSpec::Matchers {
8
9template <typename A, typename E>
10class BeLessThan : public MatcherBase<A, E> {
11 public:
12 BeLessThan(Expectation<A>& expectation, E expected) : MatcherBase<A, E>(expectation, expected) {}
13 bool match() override { return this->actual() < this->expected(); }
14 std::string verb() override { return "be less than"; }
15};
16
17} // namespace CppSpec::Matchers
Wraps the target of an expectation.
Definition expectation.hpp:47
Definition have_error.hpp:9
Contains the base class for all Matchers.