#include <catch.hpp>
Definition at line 2627 of file catch.hpp.
◆ Approx() [1/2]
Catch::Detail::Approx::Approx |
( |
double |
value | ) |
|
|
inlineexplicit |
◆ Approx() [2/2]
Catch::Detail::Approx::Approx |
( |
Approx const & |
other | ) |
|
|
inline |
◆ custom()
static Approx Catch::Detail::Approx::custom |
( |
| ) |
|
|
inlinestatic |
◆ epsilon()
Approx& Catch::Detail::Approx::epsilon |
( |
double |
newEpsilon | ) |
|
|
inline |
◆ operator()()
Approx Catch::Detail::Approx::operator() |
( |
double |
value | ) |
|
|
inline |
◆ scale()
Approx& Catch::Detail::Approx::scale |
( |
double |
newScale | ) |
|
|
inline |
◆ toString()
std::string Catch::Detail::Approx::toString |
( |
| ) |
const |
|
inline |
◆ operator!= [1/2]
bool operator!= |
( |
Approx const & |
lhs, |
|
|
double |
rhs |
|
) |
| |
|
friend |
Definition at line 2665 of file catch.hpp.
friend bool operator==(double lhs, Approx const &rhs)
◆ operator!= [2/2]
bool operator!= |
( |
double |
lhs, |
|
|
Approx const & |
rhs |
|
) |
| |
|
friend |
◆ operator== [1/2]
bool operator== |
( |
Approx const & |
lhs, |
|
|
double |
rhs |
|
) |
| |
|
friend |
◆ operator== [2/2]
bool operator== |
( |
double |
lhs, |
|
|
Approx const & |
rhs |
|
) |
| |
|
friend |
Definition at line 2652 of file catch.hpp.
2654 return fabs( lhs - rhs.m_value ) < rhs.m_epsilon * (rhs.m_scale + (std::max)( fabs(lhs), fabs(rhs.m_value) ) );
◆ m_epsilon
double Catch::Detail::Approx::m_epsilon |
|
private |
◆ m_scale
double Catch::Detail::Approx::m_scale |
|
private |
◆ m_value
double Catch::Detail::Approx::m_value |
|
private |
The documentation for this class was generated from the following file: