kaycxx-test
C++ unit test framework
Loading...
Searching...
No Matches
Namespaces | Functions
assert_not_close.hpp File Reference

Defines the assert_not_close function. More...

#include <format>
#include <optional>
#include <source_location>
#include <string_view>
#include <utility>
#include <kaycxx/test/assertion_error.hpp>
#include <kaycxx/test/detail/close.hpp>
#include <kaycxx/test/detail/to_string.hpp>
Include dependency graph for assert_not_close.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  kaycxx
 Root namespace for kaycxx libraries.
 
namespace  kaycxx::test
 Unit test framework functions and types.
 

Functions

template<typename Actual , typename Expected >
requires detail::close_supported<Actual, Expected>
void kaycxx::test::assert_not_close (Actual const &actual, Expected const &expected, int precision=2, std::string_view reason={}, std::optional< std::source_location > location=std::source_location::current())
 Asserts that two numeric values are not close enough.
 

Detailed Description

Defines the assert_not_close function.