37#include <boost/test/unit_test.hpp>
41namespace RealComparisonUnitTests
47 double ad2 = ad1 * (1.0 + 2 * std::numeric_limits<double>::epsilon());
51 double ad4 = ad3 * (1.0 + 2 * std::numeric_limits<double>::epsilon());
59 double ad2 = ad1 * (1.0 + 50 * std::numeric_limits<double>::epsilon());
63 double ad4 = ad3 * (1.0 + 50 * std::numeric_limits<double>::epsilon());
71 double ad2 = ad1 * (1.0 + std::numeric_limits<double>::epsilon());
75 double ad4 = ad3 * (1.0 + std::numeric_limits<double>::epsilon());
83 double ad2 = ad1 * (1.0 + 50 * std::numeric_limits<double>::epsilon());
106 double ad1 = 1.00001;
119 const double ad1 = 0.0;
128 const double ad2 = 1.0;
150#if defined(NEKTAR_DEBUG) || defined(NEKTAR_FULLDEBUG)
bool IsRealEqual(T1 &&lhs, T2 &&rhs, const unsigned int factor=NekConstants::kNekFloatCompFact)
compare reals of same type with relative tolerance
BOOST_AUTO_TEST_CASE(TestRealComparisonSmall)
The above copyright notice and this permission notice shall be included.