Traits used by CPPUNIT_ASSERT_EQUAL().
More...
#include <TestAssert.h>
Static Public Member Functions |
static bool | equal (const T &x, const T &y) |
static std::string | toString (const T &x) |
Detailed Description
template<class T>
struct assertion_traits< T >
Traits used by CPPUNIT_ASSERT_EQUAL().
Here is an example of specialising these traits:
template<>
{
static bool equal(
const std::string& x,
const std::string& y )
{
return x == y;
}
static std::string
toString(
const std::string& x )
{
std::string text = '"' + x + '"';
OStringStream ost;
ost << text;
return ost.str();
}
};
Member Function Documentation
The documentation for this struct was generated from the following file: