kaycxx-test
C++ unit test framework
Loading...
Searching...
No Matches
assert_true.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Klaus Reimer <k@ailis.de>
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
11#include <optional>
12#include <source_location>
13#include <string_view>
14
16
17namespace kaycxx::test {
18
29 bool actual,
30 std::string_view reason = {},
31 std::optional<std::source_location> location = std::source_location::current()
32);
33
34} // namespace kaycxx::test
Defines the assertion_error type.
Unit test framework functions and types.
Definition test.hpp:15
void assert_true(bool actual, std::string_view reason={}, std::optional< std::source_location > location=std::source_location::current())
Asserts that the argument is true.