42 std::string_view reason = {},
43 std::optional<std::source_location> location = std::source_location::current()
45 if (!(actual >= expected)) {
46 auto actual_string = detail::to_string(actual);
47 auto expected_string = detail::to_string(expected);
48 auto message = std::format(
"Expected <{}> to be greater than or equal to <{}>", actual_string, expected_string);
49 throw assertion_error(
52 std::move(actual_string),
53 std::move(expected_string),
void assert_greater_or_equal(T const &actual, T const &expected, std::string_view reason={}, std::optional< std::source_location > location=std::source_location::current())
Asserts that the actual value is greater than or equal to the expected value.
Definition assert_greater_or_equal.hpp:39