assertion_traits |
The template assertion_traits (see Figure C-1) is used by the CPPUNIT_ASSERT_EQUAL() macro. The template is specialized for different data types that are passed to the macro. For example, the template specialization assertion_traits<int> is used when CPPUNIT_ASSERT_EQUAL( ) takes arguments of type int .
The declaration of assertion_traits is found in TestAssert.h . It belongs to the namespace CppUnit .
template<class T> struct assertion_traits<T>
None.
A function template to compare two arguments of type T . The default implementation compares them using == .
A function template to output a string representing the input argument of type T . The default implementation creates the output string by creating a std::OStringStream and using its << operator.
None.
None.