OKlibrary  0.2.1.6
OKlib::TestSystem::messages Namespace Reference

Classes

struct  Banner
struct  IdentificationTestSystem
struct  RunTestOpening
struct  RunTestClosing
struct  BannerSingle
struct  SingleTestOpening
struct  SingleTestClosing
class  BasicTestDescription
 Outputs a description of the test (an identification of the test function, and nesting depth and test level). More...
class  LogDescription
 Outputs a description of the circumstances of a log-message. More...
class  ErrorDescription
 The unit to describe the point in call history leading to a test failure. More...
class  TestException
 The root of the exception class hierarchy, to be thrown in case of test failure. More...
class  NotEqual
 Output of streamable objects which are not equal (unexpectedly) More...
class  TestLevelDescriptions
 Output of test-level descriptions. More...

Functions

template<typename T1 , typename T2 >
NotEqual< T1, T2 > * test_not_equal (const T1 &a, const T2 &b)
 Helper function template: guaranteeing that a,b are evaluated only once, returning a pointer which is null if the test succeeded.

Function Documentation

template<typename T1 , typename T2 >
NotEqual<T1, T2>* OKlib::TestSystem::messages::test_not_equal ( const T1 &  a,
const T2 &  b 
) [inline]

Helper function template: guaranteeing that a,b are evaluated only once, returning a pointer which is null if the test succeeded.

Definition at line 233 of file TestExceptions.hpp.