Traits used by CPPUNIT_ASSERT* macros.  
 More...
#include <TestAssert.h>
|  | 
| static bool | equal (const T &x, const T &y) | 
|  | 
| static bool | less (const T &x, const T &y) | 
|  | 
| static bool | lessEqual (const T &x, const T &y) | 
|  | 
| static std::string | toString (const T &x) | 
|  | 
template<class T>
struct assertion_traits< T >
Traits used by CPPUNIT_ASSERT* macros. 
Here is an example of specialising these traits:
template<>
{
  static bool equal( 
const std::string& x, 
const std::string& y )
 
  {
    return x == y;
  }
 
  static bool less( 
const std::string& x, 
const std::string& y )
 
  {
     return x < y;
  }
 
  static bool lessEqual( 
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();
  }
};
Traits used by CPPUNIT_ASSERT* macros.
Definition TestAssert.h:56
static std::string toString(const T &x)
Definition TestAssert.h:72
static bool equal(const T &x, const T &y)
Definition TestAssert.h:57
static bool lessEqual(const T &x, const T &y)
Definition TestAssert.h:67
static bool less(const T &x, const T &y)
Definition TestAssert.h:62
◆ equal()
◆ less()
◆ lessEqual()
◆ toString()
The documentation for this struct was generated from the following file: