C++Spec 1.0.0
BDD testing for C++
Loading...
Searching...
No Matches
be_greater_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 BeGreaterThan : public MatcherBase<A, E> {
11 public:
12 BeGreaterThan(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 greater 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.