C++Spec 1.1.0
BDD testing for C++
Loading...
Searching...
No Matches
CppSpec::Util::compares_start_and_end Concept Reference

Checks whether to_start_with and to_end_with compare an actual value of type A with an expected one of type E: text with text, a range with a range element by element, or a range of char with text. More...

#include <util.hpp>

Concept definition

template<typename A, typename E>
(std::ranges::range<A> &&
(std::ranges::range<E> ||
(is_string_like<E> && std::same_as<std::remove_cv_t<std::ranges::range_value_t<A>>, char>)))
Checks whether to_start_with and to_end_with compare an actual value of type A with an expected one o...
Definition util.hpp:211
Checks whether T is text that CppSpec::string_view_of() can view: a C string, or a type that converts...
Definition util.hpp:201

Detailed Description

Checks whether to_start_with and to_end_with compare an actual value of type A with an expected one of type E: text with text, a range with a range element by element, or a range of char with text.

Template Parameters
Athe type of the actual value
Ethe type of the expected value