assertion_traits< double > Struct Template Reference
Traits used by CPPUNIT_ASSERT_DOUBLES_EQUAL().
More...
#include <TestAssert.h>
List of all members.
|
Static Public Member Functions |
bool | equal (double x, double y) |
std::string | toString (double x) |
Detailed Description
template<>
struct assertion_traits< double >
Traits used by CPPUNIT_ASSERT_DOUBLES_EQUAL().
This specialisation from struct
assertion_traits<>
ensures that doubles are converted in full, instead of being rounded to the default 6 digits of precision. Use the system defined ISO C99 macro DBL_DIG within float.h is available to define the maximum precision, otherwise use the hard-coded maximum precision of 15.
Member Function Documentation
The documentation for this struct was generated from the following file: