My Project
Loading...
Searching...
No Matches
Data Structures | Namespaces | Macros | Functions
TestSuite.h File Reference
#include <cxxtest/Flags.h>
#include <cxxtest/TestTracker.h>
#include <cxxtest/Descriptions.h>
#include <cxxtest/ValueTraits.h>

Go to the source code of this file.

Data Structures

class  CxxTest::TestSuite
 
class  CxxTest::AbortTest
 

Namespaces

namespace  CxxTest
 

Macros

#define TS_ABORT()   CxxTest::doAbortTest()
 
#define _TS_TRY
 
#define ___TSM_CATCH(f, l, m)
 
#define __TSM_CATCH(f, l, m)
 
#define __TS_CATCH(f, l)
 
#define _TS_CATCH
 
#define _TS_CATCH_TYPE(t, b)
 
#define _TS_LAST_CATCH(b)
 
#define _TS_CATCH_ABORT(b)
 
#define _TS_TRACE(f, l, e)   CxxTest::doTrace( (f), (l), TS_AS_STRING(e) )
 
#define TS_TRACE(e)   _TS_TRACE( __FILE__, __LINE__, e )
 
#define _TS_WARN(f, l, e)   CxxTest::doWarn( (f), (l), TS_AS_STRING(e) )
 
#define TS_WARN(e)   _TS_WARN( __FILE__, __LINE__, e )
 
#define _TS_FAIL(f, l, e)   CxxTest::doFailTest( (f), (l), TS_AS_STRING(e) )
 
#define TS_FAIL(e)   _TS_FAIL( __FILE__, __LINE__, e )
 
#define ___ETS_ASSERT(f, l, e, m)   { if ( !(e) ) CxxTest::doFailAssert( (f), (l), #e, (m) ); }
 
#define ___TS_ASSERT(f, l, e, m)   { _TS_TRY { ___ETS_ASSERT(f,l,e,m); } __TS_CATCH(f,l) }
 
#define _ETS_ASSERT(f, l, e)   ___ETS_ASSERT(f,l,e,0)
 
#define _TS_ASSERT(f, l, e)   ___TS_ASSERT(f,l,e,0)
 
#define ETS_ASSERT(e)   _ETS_ASSERT(__FILE__,__LINE__,e)
 
#define TS_ASSERT(e)   _TS_ASSERT(__FILE__,__LINE__,e)
 
#define _ETSM_ASSERT(f, l, m, e)   ___ETS_ASSERT(f,l,e,TS_AS_STRING(m) )
 
#define _TSM_ASSERT(f, l, m, e)   ___TS_ASSERT(f,l,e,TS_AS_STRING(m) )
 
#define ETSM_ASSERT(m, e)   _ETSM_ASSERT(__FILE__,__LINE__,m,e)
 
#define TSM_ASSERT(m, e)   _TSM_ASSERT(__FILE__,__LINE__,m,e)
 
#define ___ETS_ASSERT_EQUALS(f, l, x, y, m)   CxxTest::doAssertEquals( (f), (l), #x, (x), #y, (y), (m) )
 
#define ___TS_ASSERT_EQUALS(f, l, x, y, m)   { _TS_TRY { ___ETS_ASSERT_EQUALS(f,l,x,y,m); } __TS_CATCH(f,l) }
 
#define _ETS_ASSERT_EQUALS(f, l, x, y)   ___ETS_ASSERT_EQUALS(f,l,x,y,0)
 
#define _TS_ASSERT_EQUALS(f, l, x, y)   ___TS_ASSERT_EQUALS(f,l,x,y,0)
 
#define ETS_ASSERT_EQUALS(x, y)   _ETS_ASSERT_EQUALS(__FILE__,__LINE__,x,y)
 
#define TS_ASSERT_EQUALS(x, y)   _TS_ASSERT_EQUALS(__FILE__,__LINE__,x,y)
 
#define _ETSM_ASSERT_EQUALS(f, l, m, x, y)   ___ETS_ASSERT_EQUALS(f,l,x,y,TS_AS_STRING(m))
 
#define _TSM_ASSERT_EQUALS(f, l, m, x, y)   ___TS_ASSERT_EQUALS(f,l,x,y,TS_AS_STRING(m))
 
#define ETSM_ASSERT_EQUALS(m, x, y)   _ETSM_ASSERT_EQUALS(__FILE__,__LINE__,m,x,y)
 
#define TSM_ASSERT_EQUALS(m, x, y)   _TSM_ASSERT_EQUALS(__FILE__,__LINE__,m,x,y)
 
#define ___ETS_ASSERT_SAME_DATA(f, l, x, y, s, m)   CxxTest::doAssertSameData( (f), (l), #x, (x), #y, (y), #s, (s), (m) )
 
#define ___TS_ASSERT_SAME_DATA(f, l, x, y, s, m)   { _TS_TRY { ___ETS_ASSERT_SAME_DATA(f,l,x,y,s,m); } __TS_CATCH(f,l) }
 
#define _ETS_ASSERT_SAME_DATA(f, l, x, y, s)   ___ETS_ASSERT_SAME_DATA(f,l,x,y,s,0)
 
#define _TS_ASSERT_SAME_DATA(f, l, x, y, s)   ___TS_ASSERT_SAME_DATA(f,l,x,y,s,0)
 
#define ETS_ASSERT_SAME_DATA(x, y, s)   _ETS_ASSERT_SAME_DATA(__FILE__,__LINE__,x,y,s)
 
#define TS_ASSERT_SAME_DATA(x, y, s)   _TS_ASSERT_SAME_DATA(__FILE__,__LINE__,x,y,s)
 
#define _ETSM_ASSERT_SAME_DATA(f, l, m, x, y, s)   ___ETS_ASSERT_SAME_DATA(f,l,x,y,s,TS_AS_STRING(m))
 
#define _TSM_ASSERT_SAME_DATA(f, l, m, x, y, s)   ___TS_ASSERT_SAME_DATA(f,l,x,y,s,TS_AS_STRING(m))
 
#define ETSM_ASSERT_SAME_DATA(m, x, y, s)   _ETSM_ASSERT_SAME_DATA(__FILE__,__LINE__,m,x,y,s)
 
#define TSM_ASSERT_SAME_DATA(m, x, y, s)   _TSM_ASSERT_SAME_DATA(__FILE__,__LINE__,m,x,y,s)
 
#define ___ETS_ASSERT_DIFFERS(f, l, x, y, m)   CxxTest::doAssertDiffers( (f), (l), #x, (x), #y, (y), (m) )
 
#define ___TS_ASSERT_DIFFERS(f, l, x, y, m)   { _TS_TRY { ___ETS_ASSERT_DIFFERS(f,l,x,y,m); } __TS_CATCH(f,l) }
 
#define _ETS_ASSERT_DIFFERS(f, l, x, y)   ___ETS_ASSERT_DIFFERS(f,l,x,y,0)
 
#define _TS_ASSERT_DIFFERS(f, l, x, y)   ___TS_ASSERT_DIFFERS(f,l,x,y,0)
 
#define ETS_ASSERT_DIFFERS(x, y)   _ETS_ASSERT_DIFFERS(__FILE__,__LINE__,x,y)
 
#define TS_ASSERT_DIFFERS(x, y)   _TS_ASSERT_DIFFERS(__FILE__,__LINE__,x,y)
 
#define _ETSM_ASSERT_DIFFERS(f, l, m, x, y)   ___ETS_ASSERT_DIFFERS(f,l,x,y,TS_AS_STRING(m))
 
#define _TSM_ASSERT_DIFFERS(f, l, m, x, y)   ___TS_ASSERT_DIFFERS(f,l,x,y,TS_AS_STRING(m))
 
#define ETSM_ASSERT_DIFFERS(m, x, y)   _ETSM_ASSERT_DIFFERS(__FILE__,__LINE__,m,x,y)
 
#define TSM_ASSERT_DIFFERS(m, x, y)   _TSM_ASSERT_DIFFERS(__FILE__,__LINE__,m,x,y)
 
#define ___ETS_ASSERT_LESS_THAN(f, l, x, y, m)   CxxTest::doAssertLessThan( (f), (l), #x, (x), #y, (y), (m) )
 
#define ___TS_ASSERT_LESS_THAN(f, l, x, y, m)   { _TS_TRY { ___ETS_ASSERT_LESS_THAN(f,l,x,y,m); } __TS_CATCH(f,l) }
 
#define _ETS_ASSERT_LESS_THAN(f, l, x, y)   ___ETS_ASSERT_LESS_THAN(f,l,x,y,0)
 
#define _TS_ASSERT_LESS_THAN(f, l, x, y)   ___TS_ASSERT_LESS_THAN(f,l,x,y,0)
 
#define ETS_ASSERT_LESS_THAN(x, y)   _ETS_ASSERT_LESS_THAN(__FILE__,__LINE__,x,y)
 
#define TS_ASSERT_LESS_THAN(x, y)   _TS_ASSERT_LESS_THAN(__FILE__,__LINE__,x,y)
 
#define _ETSM_ASSERT_LESS_THAN(f, l, m, x, y)   ___ETS_ASSERT_LESS_THAN(f,l,x,y,TS_AS_STRING(m))
 
#define _TSM_ASSERT_LESS_THAN(f, l, m, x, y)   ___TS_ASSERT_LESS_THAN(f,l,x,y,TS_AS_STRING(m))
 
#define ETSM_ASSERT_LESS_THAN(m, x, y)   _ETSM_ASSERT_LESS_THAN(__FILE__,__LINE__,m,x,y)
 
#define TSM_ASSERT_LESS_THAN(m, x, y)   _TSM_ASSERT_LESS_THAN(__FILE__,__LINE__,m,x,y)
 
#define ___ETS_ASSERT_LESS_THAN_EQUALS(f, l, x, y, m)    CxxTest::doAssertLessThanEquals( (f), (l), #x, (x), #y, (y), (m) )
 
#define ___TS_ASSERT_LESS_THAN_EQUALS(f, l, x, y, m)    { _TS_TRY { ___ETS_ASSERT_LESS_THAN_EQUALS(f,l,x,y,m); } __TS_CATCH(f,l) }
 
#define _ETS_ASSERT_LESS_THAN_EQUALS(f, l, x, y)   ___ETS_ASSERT_LESS_THAN_EQUALS(f,l,x,y,0)
 
#define _TS_ASSERT_LESS_THAN_EQUALS(f, l, x, y)   ___TS_ASSERT_LESS_THAN_EQUALS(f,l,x,y,0)
 
#define ETS_ASSERT_LESS_THAN_EQUALS(x, y)   _ETS_ASSERT_LESS_THAN_EQUALS(__FILE__,__LINE__,x,y)
 
#define TS_ASSERT_LESS_THAN_EQUALS(x, y)   _TS_ASSERT_LESS_THAN_EQUALS(__FILE__,__LINE__,x,y)
 
#define _ETSM_ASSERT_LESS_THAN_EQUALS(f, l, m, x, y)   ___ETS_ASSERT_LESS_THAN_EQUALS(f,l,x,y,TS_AS_STRING(m))
 
#define _TSM_ASSERT_LESS_THAN_EQUALS(f, l, m, x, y)   ___TS_ASSERT_LESS_THAN_EQUALS(f,l,x,y,TS_AS_STRING(m))
 
#define ETSM_ASSERT_LESS_THAN_EQUALS(m, x, y)   _ETSM_ASSERT_LESS_THAN_EQUALS(__FILE__,__LINE__,m,x,y)
 
#define TSM_ASSERT_LESS_THAN_EQUALS(m, x, y)   _TSM_ASSERT_LESS_THAN_EQUALS(__FILE__,__LINE__,m,x,y)
 
#define ___ETS_ASSERT_PREDICATE(f, l, p, x, m)    CxxTest::doAssertPredicate( (f), (l), #p, p, #x, (x), (m) )
 
#define ___TS_ASSERT_PREDICATE(f, l, p, x, m)    { _TS_TRY { ___ETS_ASSERT_PREDICATE(f,l,p,x,m); } __TS_CATCH(f,l) }
 
#define _ETS_ASSERT_PREDICATE(f, l, p, x)   ___ETS_ASSERT_PREDICATE(f,l,p,x,0)
 
#define _TS_ASSERT_PREDICATE(f, l, p, x)   ___TS_ASSERT_PREDICATE(f,l,p,x,0)
 
#define ETS_ASSERT_PREDICATE(p, x)   _ETS_ASSERT_PREDICATE(__FILE__,__LINE__,p,x)
 
#define TS_ASSERT_PREDICATE(p, x)   _TS_ASSERT_PREDICATE(__FILE__,__LINE__,p,x)
 
#define _ETSM_ASSERT_PREDICATE(f, l, m, p, x)   ___ETS_ASSERT_PREDICATE(f,l,p,x,TS_AS_STRING(m))
 
#define _TSM_ASSERT_PREDICATE(f, l, m, p, x)   ___TS_ASSERT_PREDICATE(f,l,p,x,TS_AS_STRING(m))
 
#define ETSM_ASSERT_PREDICATE(m, p, x)   _ETSM_ASSERT_PREDICATE(__FILE__,__LINE__,m,p,x)
 
#define TSM_ASSERT_PREDICATE(m, p, x)   _TSM_ASSERT_PREDICATE(__FILE__,__LINE__,m,p,x)
 
#define ___ETS_ASSERT_RELATION(f, l, r, x, y, m)    CxxTest::doAssertRelation( (f), (l), #r, r(), #x, (x), #y, (y), (m) )
 
#define ___TS_ASSERT_RELATION(f, l, r, x, y, m)    { _TS_TRY { ___ETS_ASSERT_RELATION(f,l,r,x,y,m); } __TS_CATCH(f,l) }
 
#define _ETS_ASSERT_RELATION(f, l, r, x, y)   ___ETS_ASSERT_RELATION(f,l,r,x,y,0)
 
#define _TS_ASSERT_RELATION(f, l, r, x, y)   ___TS_ASSERT_RELATION(f,l,r,x,y,0)
 
#define ETS_ASSERT_RELATION(r, x, y)   _ETS_ASSERT_RELATION(__FILE__,__LINE__,r,x,y)
 
#define TS_ASSERT_RELATION(r, x, y)   _TS_ASSERT_RELATION(__FILE__,__LINE__,r,x,y)
 
#define _ETSM_ASSERT_RELATION(f, l, m, r, x, y)   ___ETS_ASSERT_RELATION(f,l,r,x,y,TS_AS_STRING(m))
 
#define _TSM_ASSERT_RELATION(f, l, m, r, x, y)   ___TS_ASSERT_RELATION(f,l,r,x,y,TS_AS_STRING(m))
 
#define ETSM_ASSERT_RELATION(m, r, x, y)   _ETSM_ASSERT_RELATION(__FILE__,__LINE__,m,r,x,y)
 
#define TSM_ASSERT_RELATION(m, r, x, y)   _TSM_ASSERT_RELATION(__FILE__,__LINE__,m,r,x,y)
 
#define ___ETS_ASSERT_DELTA(f, l, x, y, d, m)   CxxTest::doAssertDelta( (f), (l), #x, (x), #y, (y), #d, (d), (m) )
 
#define ___TS_ASSERT_DELTA(f, l, x, y, d, m)   { _TS_TRY { ___ETS_ASSERT_DELTA(f,l,x,y,d,m); } __TS_CATCH(f,l) }
 
#define _ETS_ASSERT_DELTA(f, l, x, y, d)   ___ETS_ASSERT_DELTA(f,l,x,y,d,0)
 
#define _TS_ASSERT_DELTA(f, l, x, y, d)   ___TS_ASSERT_DELTA(f,l,x,y,d,0)
 
#define ETS_ASSERT_DELTA(x, y, d)   _ETS_ASSERT_DELTA(__FILE__,__LINE__,x,y,d)
 
#define TS_ASSERT_DELTA(x, y, d)   _TS_ASSERT_DELTA(__FILE__,__LINE__,x,y,d)
 
#define _ETSM_ASSERT_DELTA(f, l, m, x, y, d)   ___ETS_ASSERT_DELTA(f,l,x,y,d,TS_AS_STRING(m))
 
#define _TSM_ASSERT_DELTA(f, l, m, x, y, d)   ___TS_ASSERT_DELTA(f,l,x,y,d,TS_AS_STRING(m))
 
#define ETSM_ASSERT_DELTA(m, x, y, d)   _ETSM_ASSERT_DELTA(__FILE__,__LINE__,m,x,y,d)
 
#define TSM_ASSERT_DELTA(m, x, y, d)   _TSM_ASSERT_DELTA(__FILE__,__LINE__,m,x,y,d)
 
#define ___TS_ASSERT_THROWS(f, l, e, t, m)
 
#define _TS_ASSERT_THROWS(f, l, e, t)   ___TS_ASSERT_THROWS(f,l,e,t,0)
 
#define TS_ASSERT_THROWS(e, t)   _TS_ASSERT_THROWS(__FILE__,__LINE__,e,t)
 
#define _TSM_ASSERT_THROWS(f, l, m, e, t)   ___TS_ASSERT_THROWS(f,l,e,t,TS_AS_STRING(m))
 
#define TSM_ASSERT_THROWS(m, e, t)   _TSM_ASSERT_THROWS(__FILE__,__LINE__,m,e,t)
 
#define ___TS_ASSERT_THROWS_ASSERT(f, l, e, t, a, m)
 
#define _TS_ASSERT_THROWS_ASSERT(f, l, e, t, a)   ___TS_ASSERT_THROWS_ASSERT(f,l,e,t,a,0)
 
#define TS_ASSERT_THROWS_ASSERT(e, t, a)   _TS_ASSERT_THROWS_ASSERT(__FILE__,__LINE__,e,t,a)
 
#define _TSM_ASSERT_THROWS_ASSERT(f, l, m, e, t, a)   ___TS_ASSERT_THROWS_ASSERT(f,l,e,t,a,TS_AS_STRING(m))
 
#define TSM_ASSERT_THROWS_ASSERT(m, e, t, a)   _TSM_ASSERT_THROWS_ASSERT(__FILE__,__LINE__,m,e,t,a)
 
#define TS_ASSERT_THROWS_EQUALS(e, t, x, y)   TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_EQUALS(x,y))
 
#define TSM_ASSERT_THROWS_EQUALS(m, e, t, x, y)   TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_EQUALS(m,x,y))
 
#define TS_ASSERT_THROWS_DIFFERS(e, t, x, y)   TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_DIFFERS(x,y))
 
#define TSM_ASSERT_THROWS_DIFFERS(m, e, t, x, y)   TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_DIFFERS(m,x,y))
 
#define TS_ASSERT_THROWS_DELTA(e, t, x, y, d)   TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_DELTA(x,y,d))
 
#define TSM_ASSERT_THROWS_DELTA(m, e, t, x, y, d)   TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_DELTA(m,x,y,d))
 
#define TS_ASSERT_THROWS_SAME_DATA(e, t, x, y, s)   TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_SAME_DATA(x,y,s))
 
#define TSM_ASSERT_THROWS_SAME_DATA(m, e, t, x, y, s)   TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_SAME_DATA(m,x,y,s))
 
#define TS_ASSERT_THROWS_LESS_THAN(e, t, x, y)   TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_LESS_THAN(x,y))
 
#define TSM_ASSERT_THROWS_LESS_THAN(m, e, t, x, y)   TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_LESS_THAN(m,x,y))
 
#define TS_ASSERT_THROWS_LESS_THAN_EQUALS(e, t, x, y)   TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_LESS_THAN_EQUALS(x,y))
 
#define TSM_ASSERT_THROWS_LESS_THAN_EQUALS(m, e, t, x, y)   TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_LESS_THAN_EQUALS(m,x,y))
 
#define TS_ASSERT_THROWS_PREDICATE(e, t, p, v)   TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_PREDICATE(p,v))
 
#define TSM_ASSERT_THROWS_PREDICATE(m, e, t, p, v)   TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_PREDICATE(m,p,v))
 
#define TS_ASSERT_THROWS_RELATION(e, t, r, x, y)   TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_RELATION(r,x,y))
 
#define TSM_ASSERT_THROWS_RELATION(m, e, t, r, x, y)   TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_RELATION(m,r,x,y))
 
#define ___TS_ASSERT_THROWS_ANYTHING(f, l, e, m)
 
#define _TS_ASSERT_THROWS_ANYTHING(f, l, e)   ___TS_ASSERT_THROWS_ANYTHING(f,l,e,0)
 
#define TS_ASSERT_THROWS_ANYTHING(e)   _TS_ASSERT_THROWS_ANYTHING(__FILE__, __LINE__, e)
 
#define _TSM_ASSERT_THROWS_ANYTHING(f, l, m, e)   ___TS_ASSERT_THROWS_ANYTHING(f,l,e,TS_AS_STRING(m))
 
#define TSM_ASSERT_THROWS_ANYTHING(m, e)   _TSM_ASSERT_THROWS_ANYTHING(__FILE__,__LINE__,m,e)
 
#define ___TS_ASSERT_THROWS_NOTHING(f, l, e, m)
 
#define _TS_ASSERT_THROWS_NOTHING(f, l, e)   ___TS_ASSERT_THROWS_NOTHING(f,l,e,0)
 
#define TS_ASSERT_THROWS_NOTHING(e)   _TS_ASSERT_THROWS_NOTHING(__FILE__,__LINE__,e)
 
#define _TSM_ASSERT_THROWS_NOTHING(f, l, m, e)   ___TS_ASSERT_THROWS_NOTHING(f,l,e,TS_AS_STRING(m))
 
#define TSM_ASSERT_THROWS_NOTHING(m, e)   _TSM_ASSERT_THROWS_NOTHING(__FILE__,__LINE__,m,e)
 
#define CXXTEST_COMPARISONS(CXXTEST_X, CXXTEST_Y, CXXTEST_T)
 
#define CXXTEST_INTEGRAL(CXXTEST_T)    CXXTEST_COMPARISONS( signed CXXTEST_T, unsigned CXXTEST_T, unsigned CXXTEST_T )
 
#define CXXTEST_SMALL_BIG(CXXTEST_SMALL, CXXTEST_BIG)
 

Functions

void CxxTest::doAbortTest ()
 
bool CxxTest::abortTestOnFail ()
 
void CxxTest::setAbortTestOnFail (bool value)
 
unsigned CxxTest::maxDumpSize ()
 
void CxxTest::setMaxDumpSize (unsigned value)
 
void CxxTest::doTrace (const char *file, unsigned line, const char *message)
 
void CxxTest::doWarn (const char *file, unsigned line, const char *message)
 
void CxxTest::doFailTest (const char *file, unsigned line, const char *message)
 
void CxxTest::doFailAssert (const char *file, unsigned line, const char *expression, const char *message)
 
template<class X , class Y >
bool CxxTest::equals (X x, Y y)
 
template<class X , class Y >
void CxxTest::doAssertEquals (const char *file, unsigned line, const char *xExpr, X x, const char *yExpr, Y y, const char *message)
 
void CxxTest::doAssertSameData (const char *file, unsigned line, const char *xExpr, const void *x, const char *yExpr, const void *y, const char *sizeExpr, unsigned size, const char *message)
 
template<class X , class Y >
bool CxxTest::differs (X x, Y y)
 
template<class X , class Y >
void CxxTest::doAssertDiffers (const char *file, unsigned line, const char *xExpr, X x, const char *yExpr, Y y, const char *message)
 
template<class X , class Y >
bool CxxTest::lessThan (X x, Y y)
 
template<class X , class Y >
void CxxTest::doAssertLessThan (const char *file, unsigned line, const char *xExpr, X x, const char *yExpr, Y y, const char *message)
 
template<class X , class Y >
bool CxxTest::lessThanEquals (X x, Y y)
 
template<class X , class Y >
void CxxTest::doAssertLessThanEquals (const char *file, unsigned line, const char *xExpr, X x, const char *yExpr, Y y, const char *message)
 
template<class X , class P >
void CxxTest::doAssertPredicate (const char *file, unsigned line, const char *pExpr, const P &p, const char *xExpr, X x, const char *message)
 
template<class X , class Y , class R >
void CxxTest::doAssertRelation (const char *file, unsigned line, const char *rExpr, const R &r, const char *xExpr, X x, const char *yExpr, Y y, const char *message)
 
template<class X , class Y , class D >
bool CxxTest::delta (X x, Y y, D d)
 
template<class X , class Y , class D >
void CxxTest::doAssertDelta (const char *file, unsigned line, const char *xExpr, X x, const char *yExpr, Y y, const char *dExpr, D d, const char *message)
 
void CxxTest::doFailAssertThrows (const char *file, unsigned line, const char *expr, const char *type, bool otherThrown, const char *message)
 
void CxxTest::doFailAssertThrowsNot (const char *file, unsigned line, const char *expression, const char *message)
 
 CxxTest::CXXTEST_INTEGRAL (char) CXXTEST_INTEGRAL(short) CXXTEST_INTEGRAL(int) CXXTEST_INTEGRAL(long) CXXTEST_SMALL_BIG(char
 
short CxxTest::CXXTEST_SMALL_BIG (char, int) CXXTEST_SMALL_BIG(short
 
short int CxxTest::CXXTEST_SMALL_BIG (char, long) CXXTEST_SMALL_BIG(short
 

Data Structure Documentation

◆ CxxTest::AbortTest

class CxxTest::AbortTest

Definition at line 29 of file TestSuite.h.

Macro Definition Documentation

◆ ___ETS_ASSERT

#define ___ETS_ASSERT (   f,
  l,
  e,
  m 
)    { if ( !(e) ) CxxTest::doFailAssert( (f), (l), #e, (m) ); }

Definition at line 232 of file TestSuite.h.

◆ ___ETS_ASSERT_DELTA

#define ___ETS_ASSERT_DELTA (   f,
  l,
  x,
  y,
  d,
  m 
)    CxxTest::doAssertDelta( (f), (l), #x, (x), #y, (y), #d, (d), (m) )

Definition at line 366 of file TestSuite.h.

◆ ___ETS_ASSERT_DIFFERS

#define ___ETS_ASSERT_DIFFERS (   f,
  l,
  x,
  y,
  m 
)    CxxTest::doAssertDiffers( (f), (l), #x, (x), #y, (y), (m) )

Definition at line 280 of file TestSuite.h.

◆ ___ETS_ASSERT_EQUALS

#define ___ETS_ASSERT_EQUALS (   f,
  l,
  x,
  y,
  m 
)    CxxTest::doAssertEquals( (f), (l), #x, (x), #y, (y), (m) )

Definition at line 248 of file TestSuite.h.

◆ ___ETS_ASSERT_LESS_THAN

#define ___ETS_ASSERT_LESS_THAN (   f,
  l,
  x,
  y,
  m 
)    CxxTest::doAssertLessThan( (f), (l), #x, (x), #y, (y), (m) )

Definition at line 296 of file TestSuite.h.

◆ ___ETS_ASSERT_LESS_THAN_EQUALS

#define ___ETS_ASSERT_LESS_THAN_EQUALS (   f,
  l,
  x,
  y,
  m 
)     CxxTest::doAssertLessThanEquals( (f), (l), #x, (x), #y, (y), (m) )

Definition at line 312 of file TestSuite.h.

◆ ___ETS_ASSERT_PREDICATE

#define ___ETS_ASSERT_PREDICATE (   f,
  l,
  p,
  x,
  m 
)     CxxTest::doAssertPredicate( (f), (l), #p, p, #x, (x), (m) )

Definition at line 330 of file TestSuite.h.

◆ ___ETS_ASSERT_RELATION

#define ___ETS_ASSERT_RELATION (   f,
  l,
  r,
  x,
  y,
  m 
)     CxxTest::doAssertRelation( (f), (l), #r, r(), #x, (x), #y, (y), (m) )

Definition at line 348 of file TestSuite.h.

◆ ___ETS_ASSERT_SAME_DATA

#define ___ETS_ASSERT_SAME_DATA (   f,
  l,
  x,
  y,
  s,
  m 
)    CxxTest::doAssertSameData( (f), (l), #x, (x), #y, (y), #s, (s), (m) )

Definition at line 264 of file TestSuite.h.

◆ ___TS_ASSERT

#define ___TS_ASSERT (   f,
  l,
  e,
  m 
)    { _TS_TRY { ___ETS_ASSERT(f,l,e,m); } __TS_CATCH(f,l) }

Definition at line 233 of file TestSuite.h.

◆ ___TS_ASSERT_DELTA

#define ___TS_ASSERT_DELTA (   f,
  l,
  x,
  y,
  d,
  m 
)    { _TS_TRY { ___ETS_ASSERT_DELTA(f,l,x,y,d,m); } __TS_CATCH(f,l) }

Definition at line 367 of file TestSuite.h.

◆ ___TS_ASSERT_DIFFERS

#define ___TS_ASSERT_DIFFERS (   f,
  l,
  x,
  y,
  m 
)    { _TS_TRY { ___ETS_ASSERT_DIFFERS(f,l,x,y,m); } __TS_CATCH(f,l) }

Definition at line 281 of file TestSuite.h.

◆ ___TS_ASSERT_EQUALS

#define ___TS_ASSERT_EQUALS (   f,
  l,
  x,
  y,
  m 
)    { _TS_TRY { ___ETS_ASSERT_EQUALS(f,l,x,y,m); } __TS_CATCH(f,l) }

Definition at line 249 of file TestSuite.h.

◆ ___TS_ASSERT_LESS_THAN

#define ___TS_ASSERT_LESS_THAN (   f,
  l,
  x,
  y,
  m 
)    { _TS_TRY { ___ETS_ASSERT_LESS_THAN(f,l,x,y,m); } __TS_CATCH(f,l) }

Definition at line 297 of file TestSuite.h.

◆ ___TS_ASSERT_LESS_THAN_EQUALS

#define ___TS_ASSERT_LESS_THAN_EQUALS (   f,
  l,
  x,
  y,
  m 
)     { _TS_TRY { ___ETS_ASSERT_LESS_THAN_EQUALS(f,l,x,y,m); } __TS_CATCH(f,l) }

Definition at line 314 of file TestSuite.h.

◆ ___TS_ASSERT_PREDICATE

#define ___TS_ASSERT_PREDICATE (   f,
  l,
  p,
  x,
  m 
)     { _TS_TRY { ___ETS_ASSERT_PREDICATE(f,l,p,x,m); } __TS_CATCH(f,l) }

Definition at line 332 of file TestSuite.h.

◆ ___TS_ASSERT_RELATION

#define ___TS_ASSERT_RELATION (   f,
  l,
  r,
  x,
  y,
  m 
)     { _TS_TRY { ___ETS_ASSERT_RELATION(f,l,r,x,y,m); } __TS_CATCH(f,l) }

Definition at line 350 of file TestSuite.h.

◆ ___TS_ASSERT_SAME_DATA

#define ___TS_ASSERT_SAME_DATA (   f,
  l,
  x,
  y,
  s,
  m 
)    { _TS_TRY { ___ETS_ASSERT_SAME_DATA(f,l,x,y,s,m); } __TS_CATCH(f,l) }

Definition at line 265 of file TestSuite.h.

◆ ___TS_ASSERT_THROWS

#define ___TS_ASSERT_THROWS (   f,
  l,
  e,
  t,
  m 
)
Value:
{ \
bool _ts_threw_expected = false, _ts_threw_else = false; \
_TS_TRY { e; } \
_TS_CATCH_TYPE( (t), { _ts_threw_expected = true; } ) \
_TS_CATCH_ABORT( { throw; } ) \
_TS_LAST_CATCH( { _ts_threw_else = true; } ) \
if ( !_ts_threw_expected ) { CxxTest::doFailAssertThrows( (f), (l), #e, #t, _ts_threw_else, (m) ); } }
#define _TS_TRY
Definition: TestSuite.h:209
#define _TS_LAST_CATCH(b)
Definition: TestSuite.h:215
#define _TS_CATCH_ABORT(b)
Definition: TestSuite.h:216
int l
Definition: cfEzgcd.cc:100
int m
Definition: cfEzgcd.cc:128
FILE * f
Definition: checklibs.c:9
void doFailAssertThrows(const char *file, unsigned line, const char *expr, const char *type, bool otherThrown, const char *message)
Definition: TestSuite.cpp:115

Definition at line 382 of file TestSuite.h.

◆ ___TS_ASSERT_THROWS_ANYTHING

#define ___TS_ASSERT_THROWS_ANYTHING (   f,
  l,
  e,
  m 
)
Value:
{ \
bool _ts_threw = false; \
_TS_TRY { e; } \
_TS_LAST_CATCH( { _ts_threw = true; } ) \
if ( !_ts_threw ) { CxxTest::doFailAssertThrows( (f), (l), #e, "...", false, (m) ); } }

Definition at line 444 of file TestSuite.h.

◆ ___TS_ASSERT_THROWS_ASSERT

#define ___TS_ASSERT_THROWS_ASSERT (   f,
  l,
  e,
  t,
  a,
  m 
)
Value:
{ \
bool _ts_threw_expected = false, _ts_threw_else = false; \
_TS_TRY { e; } \
_TS_CATCH_TYPE( (t), { a; _ts_threw_expected = true; } ) \
_TS_CATCH_ABORT( { throw; } ) \
_TS_LAST_CATCH( { _ts_threw_else = true; } ) \
if ( !_ts_threw_expected ) { CxxTest::doFailAssertThrows( (f), (l), #e, #t, _ts_threw_else, (m) ); } }

Definition at line 397 of file TestSuite.h.

◆ ___TS_ASSERT_THROWS_NOTHING

#define ___TS_ASSERT_THROWS_NOTHING (   f,
  l,
  e,
  m 
)
Value:
{ \
_TS_TRY { e; } \
_TS_CATCH_ABORT( { throw; } ) \
void doFailAssertThrowsNot(const char *file, unsigned line, const char *expression, const char *message)
Definition: TestSuite.cpp:127

Definition at line 457 of file TestSuite.h.

◆ ___TSM_CATCH

#define ___TSM_CATCH (   f,
  l,
  m 
)

Definition at line 210 of file TestSuite.h.

◆ __TS_CATCH

#define __TS_CATCH (   f,
  l 
)

Definition at line 212 of file TestSuite.h.

◆ __TSM_CATCH

#define __TSM_CATCH (   f,
  l,
  m 
)

Definition at line 211 of file TestSuite.h.

◆ _ETS_ASSERT

#define _ETS_ASSERT (   f,
  l,
 
)    ___ETS_ASSERT(f,l,e,0)

Definition at line 235 of file TestSuite.h.

◆ _ETS_ASSERT_DELTA

#define _ETS_ASSERT_DELTA (   f,
  l,
  x,
  y,
 
)    ___ETS_ASSERT_DELTA(f,l,x,y,d,0)

Definition at line 369 of file TestSuite.h.

◆ _ETS_ASSERT_DIFFERS

#define _ETS_ASSERT_DIFFERS (   f,
  l,
  x,
  y 
)    ___ETS_ASSERT_DIFFERS(f,l,x,y,0)

Definition at line 283 of file TestSuite.h.

◆ _ETS_ASSERT_EQUALS

#define _ETS_ASSERT_EQUALS (   f,
  l,
  x,
  y 
)    ___ETS_ASSERT_EQUALS(f,l,x,y,0)

Definition at line 251 of file TestSuite.h.

◆ _ETS_ASSERT_LESS_THAN

#define _ETS_ASSERT_LESS_THAN (   f,
  l,
  x,
  y 
)    ___ETS_ASSERT_LESS_THAN(f,l,x,y,0)

Definition at line 299 of file TestSuite.h.

◆ _ETS_ASSERT_LESS_THAN_EQUALS

#define _ETS_ASSERT_LESS_THAN_EQUALS (   f,
  l,
  x,
  y 
)    ___ETS_ASSERT_LESS_THAN_EQUALS(f,l,x,y,0)

Definition at line 317 of file TestSuite.h.

◆ _ETS_ASSERT_PREDICATE

#define _ETS_ASSERT_PREDICATE (   f,
  l,
  p,
  x 
)    ___ETS_ASSERT_PREDICATE(f,l,p,x,0)

Definition at line 335 of file TestSuite.h.

◆ _ETS_ASSERT_RELATION

#define _ETS_ASSERT_RELATION (   f,
  l,
  r,
  x,
  y 
)    ___ETS_ASSERT_RELATION(f,l,r,x,y,0)

Definition at line 353 of file TestSuite.h.

◆ _ETS_ASSERT_SAME_DATA

#define _ETS_ASSERT_SAME_DATA (   f,
  l,
  x,
  y,
  s 
)    ___ETS_ASSERT_SAME_DATA(f,l,x,y,s,0)

Definition at line 267 of file TestSuite.h.

◆ _ETSM_ASSERT

#define _ETSM_ASSERT (   f,
  l,
  m,
 
)    ___ETS_ASSERT(f,l,e,TS_AS_STRING(m) )

Definition at line 241 of file TestSuite.h.

◆ _ETSM_ASSERT_DELTA

#define _ETSM_ASSERT_DELTA (   f,
  l,
  m,
  x,
  y,
 
)    ___ETS_ASSERT_DELTA(f,l,x,y,d,TS_AS_STRING(m))

Definition at line 375 of file TestSuite.h.

◆ _ETSM_ASSERT_DIFFERS

#define _ETSM_ASSERT_DIFFERS (   f,
  l,
  m,
  x,
  y 
)    ___ETS_ASSERT_DIFFERS(f,l,x,y,TS_AS_STRING(m))

Definition at line 289 of file TestSuite.h.

◆ _ETSM_ASSERT_EQUALS

#define _ETSM_ASSERT_EQUALS (   f,
  l,
  m,
  x,
  y 
)    ___ETS_ASSERT_EQUALS(f,l,x,y,TS_AS_STRING(m))

Definition at line 257 of file TestSuite.h.

◆ _ETSM_ASSERT_LESS_THAN

#define _ETSM_ASSERT_LESS_THAN (   f,
  l,
  m,
  x,
  y 
)    ___ETS_ASSERT_LESS_THAN(f,l,x,y,TS_AS_STRING(m))

Definition at line 305 of file TestSuite.h.

◆ _ETSM_ASSERT_LESS_THAN_EQUALS

#define _ETSM_ASSERT_LESS_THAN_EQUALS (   f,
  l,
  m,
  x,
  y 
)    ___ETS_ASSERT_LESS_THAN_EQUALS(f,l,x,y,TS_AS_STRING(m))

Definition at line 323 of file TestSuite.h.

◆ _ETSM_ASSERT_PREDICATE

#define _ETSM_ASSERT_PREDICATE (   f,
  l,
  m,
  p,
  x 
)    ___ETS_ASSERT_PREDICATE(f,l,p,x,TS_AS_STRING(m))

Definition at line 341 of file TestSuite.h.

◆ _ETSM_ASSERT_RELATION

#define _ETSM_ASSERT_RELATION (   f,
  l,
  m,
  r,
  x,
  y 
)    ___ETS_ASSERT_RELATION(f,l,r,x,y,TS_AS_STRING(m))

Definition at line 359 of file TestSuite.h.

◆ _ETSM_ASSERT_SAME_DATA

#define _ETSM_ASSERT_SAME_DATA (   f,
  l,
  m,
  x,
  y,
  s 
)    ___ETS_ASSERT_SAME_DATA(f,l,x,y,s,TS_AS_STRING(m))

Definition at line 273 of file TestSuite.h.

◆ _TS_ASSERT

#define _TS_ASSERT (   f,
  l,
 
)    ___TS_ASSERT(f,l,e,0)

Definition at line 236 of file TestSuite.h.

◆ _TS_ASSERT_DELTA

#define _TS_ASSERT_DELTA (   f,
  l,
  x,
  y,
 
)    ___TS_ASSERT_DELTA(f,l,x,y,d,0)

Definition at line 370 of file TestSuite.h.

◆ _TS_ASSERT_DIFFERS

#define _TS_ASSERT_DIFFERS (   f,
  l,
  x,
  y 
)    ___TS_ASSERT_DIFFERS(f,l,x,y,0)

Definition at line 284 of file TestSuite.h.

◆ _TS_ASSERT_EQUALS

#define _TS_ASSERT_EQUALS (   f,
  l,
  x,
  y 
)    ___TS_ASSERT_EQUALS(f,l,x,y,0)

Definition at line 252 of file TestSuite.h.

◆ _TS_ASSERT_LESS_THAN

#define _TS_ASSERT_LESS_THAN (   f,
  l,
  x,
  y 
)    ___TS_ASSERT_LESS_THAN(f,l,x,y,0)

Definition at line 300 of file TestSuite.h.

◆ _TS_ASSERT_LESS_THAN_EQUALS

#define _TS_ASSERT_LESS_THAN_EQUALS (   f,
  l,
  x,
  y 
)    ___TS_ASSERT_LESS_THAN_EQUALS(f,l,x,y,0)

Definition at line 318 of file TestSuite.h.

◆ _TS_ASSERT_PREDICATE

#define _TS_ASSERT_PREDICATE (   f,
  l,
  p,
  x 
)    ___TS_ASSERT_PREDICATE(f,l,p,x,0)

Definition at line 336 of file TestSuite.h.

◆ _TS_ASSERT_RELATION

#define _TS_ASSERT_RELATION (   f,
  l,
  r,
  x,
  y 
)    ___TS_ASSERT_RELATION(f,l,r,x,y,0)

Definition at line 354 of file TestSuite.h.

◆ _TS_ASSERT_SAME_DATA

#define _TS_ASSERT_SAME_DATA (   f,
  l,
  x,
  y,
  s 
)    ___TS_ASSERT_SAME_DATA(f,l,x,y,s,0)

Definition at line 268 of file TestSuite.h.

◆ _TS_ASSERT_THROWS

#define _TS_ASSERT_THROWS (   f,
  l,
  e,
 
)    ___TS_ASSERT_THROWS(f,l,e,t,0)

Definition at line 390 of file TestSuite.h.

◆ _TS_ASSERT_THROWS_ANYTHING

#define _TS_ASSERT_THROWS_ANYTHING (   f,
  l,
 
)    ___TS_ASSERT_THROWS_ANYTHING(f,l,e,0)

Definition at line 450 of file TestSuite.h.

◆ _TS_ASSERT_THROWS_ASSERT

#define _TS_ASSERT_THROWS_ASSERT (   f,
  l,
  e,
  t,
 
)    ___TS_ASSERT_THROWS_ASSERT(f,l,e,t,a,0)

Definition at line 405 of file TestSuite.h.

◆ _TS_ASSERT_THROWS_NOTHING

#define _TS_ASSERT_THROWS_NOTHING (   f,
  l,
 
)    ___TS_ASSERT_THROWS_NOTHING(f,l,e,0)

Definition at line 462 of file TestSuite.h.

◆ _TS_CATCH

#define _TS_CATCH

Definition at line 213 of file TestSuite.h.

◆ _TS_CATCH_ABORT

#define _TS_CATCH_ABORT (   b)

Definition at line 216 of file TestSuite.h.

◆ _TS_CATCH_TYPE

#define _TS_CATCH_TYPE (   t,
  b 
)

Definition at line 214 of file TestSuite.h.

◆ _TS_FAIL

#define _TS_FAIL (   f,
  l,
 
)    CxxTest::doFailTest( (f), (l), TS_AS_STRING(e) )

Definition at line 228 of file TestSuite.h.

◆ _TS_LAST_CATCH

#define _TS_LAST_CATCH (   b)

Definition at line 215 of file TestSuite.h.

◆ _TS_TRACE

#define _TS_TRACE (   f,
  l,
 
)    CxxTest::doTrace( (f), (l), TS_AS_STRING(e) )

Definition at line 220 of file TestSuite.h.

◆ _TS_TRY

#define _TS_TRY

Definition at line 209 of file TestSuite.h.

◆ _TS_WARN

#define _TS_WARN (   f,
  l,
 
)    CxxTest::doWarn( (f), (l), TS_AS_STRING(e) )

Definition at line 224 of file TestSuite.h.

◆ _TSM_ASSERT

#define _TSM_ASSERT (   f,
  l,
  m,
 
)    ___TS_ASSERT(f,l,e,TS_AS_STRING(m) )

Definition at line 242 of file TestSuite.h.

◆ _TSM_ASSERT_DELTA

#define _TSM_ASSERT_DELTA (   f,
  l,
  m,
  x,
  y,
 
)    ___TS_ASSERT_DELTA(f,l,x,y,d,TS_AS_STRING(m))

Definition at line 376 of file TestSuite.h.

◆ _TSM_ASSERT_DIFFERS

#define _TSM_ASSERT_DIFFERS (   f,
  l,
  m,
  x,
  y 
)    ___TS_ASSERT_DIFFERS(f,l,x,y,TS_AS_STRING(m))

Definition at line 290 of file TestSuite.h.

◆ _TSM_ASSERT_EQUALS

#define _TSM_ASSERT_EQUALS (   f,
  l,
  m,
  x,
  y 
)    ___TS_ASSERT_EQUALS(f,l,x,y,TS_AS_STRING(m))

Definition at line 258 of file TestSuite.h.

◆ _TSM_ASSERT_LESS_THAN

#define _TSM_ASSERT_LESS_THAN (   f,
  l,
  m,
  x,
  y 
)    ___TS_ASSERT_LESS_THAN(f,l,x,y,TS_AS_STRING(m))

Definition at line 306 of file TestSuite.h.

◆ _TSM_ASSERT_LESS_THAN_EQUALS

#define _TSM_ASSERT_LESS_THAN_EQUALS (   f,
  l,
  m,
  x,
  y 
)    ___TS_ASSERT_LESS_THAN_EQUALS(f,l,x,y,TS_AS_STRING(m))

Definition at line 324 of file TestSuite.h.

◆ _TSM_ASSERT_PREDICATE

#define _TSM_ASSERT_PREDICATE (   f,
  l,
  m,
  p,
  x 
)    ___TS_ASSERT_PREDICATE(f,l,p,x,TS_AS_STRING(m))

Definition at line 342 of file TestSuite.h.

◆ _TSM_ASSERT_RELATION

#define _TSM_ASSERT_RELATION (   f,
  l,
  m,
  r,
  x,
  y 
)    ___TS_ASSERT_RELATION(f,l,r,x,y,TS_AS_STRING(m))

Definition at line 360 of file TestSuite.h.

◆ _TSM_ASSERT_SAME_DATA

#define _TSM_ASSERT_SAME_DATA (   f,
  l,
  m,
  x,
  y,
  s 
)    ___TS_ASSERT_SAME_DATA(f,l,x,y,s,TS_AS_STRING(m))

Definition at line 274 of file TestSuite.h.

◆ _TSM_ASSERT_THROWS

#define _TSM_ASSERT_THROWS (   f,
  l,
  m,
  e,
 
)    ___TS_ASSERT_THROWS(f,l,e,t,TS_AS_STRING(m))

Definition at line 393 of file TestSuite.h.

◆ _TSM_ASSERT_THROWS_ANYTHING

#define _TSM_ASSERT_THROWS_ANYTHING (   f,
  l,
  m,
 
)    ___TS_ASSERT_THROWS_ANYTHING(f,l,e,TS_AS_STRING(m))

Definition at line 453 of file TestSuite.h.

◆ _TSM_ASSERT_THROWS_ASSERT

#define _TSM_ASSERT_THROWS_ASSERT (   f,
  l,
  m,
  e,
  t,
 
)    ___TS_ASSERT_THROWS_ASSERT(f,l,e,t,a,TS_AS_STRING(m))

Definition at line 408 of file TestSuite.h.

◆ _TSM_ASSERT_THROWS_NOTHING

#define _TSM_ASSERT_THROWS_NOTHING (   f,
  l,
  m,
 
)    ___TS_ASSERT_THROWS_NOTHING(f,l,e,TS_AS_STRING(m))

Definition at line 465 of file TestSuite.h.

◆ CXXTEST_COMPARISONS

#define CXXTEST_COMPARISONS (   CXXTEST_X,
  CXXTEST_Y,
  CXXTEST_T 
)
Value:
inline bool equals( CXXTEST_X x, CXXTEST_Y y ) { return (((CXXTEST_T)x) == ((CXXTEST_T)y)); } \
inline bool equals( CXXTEST_Y y, CXXTEST_X x ) { return (((CXXTEST_T)y) == ((CXXTEST_T)x)); } \
inline bool differs( CXXTEST_X x, CXXTEST_Y y ) { return (((CXXTEST_T)x) != ((CXXTEST_T)y)); } \
inline bool differs( CXXTEST_Y y, CXXTEST_X x ) { return (((CXXTEST_T)y) != ((CXXTEST_T)x)); } \
inline bool lessThan( CXXTEST_X x, CXXTEST_Y y ) { return (((CXXTEST_T)x) < ((CXXTEST_T)y)); } \
inline bool lessThan( CXXTEST_Y y, CXXTEST_X x ) { return (((CXXTEST_T)y) < ((CXXTEST_T)x)); } \
inline bool lessThanEquals( CXXTEST_X x, CXXTEST_Y y ) { return (((CXXTEST_T)x) <= ((CXXTEST_T)y)); } \
inline bool lessThanEquals( CXXTEST_Y y, CXXTEST_X x ) { return (((CXXTEST_T)y) <= ((CXXTEST_T)x)); }
Variable x
Definition: cfModGcd.cc:4082
const CanonicalForm int const CFList const Variable & y
Definition: facAbsFact.cc:53
bool lessThanEquals(X x, Y y)
Definition: TestSuite.h:111
bool lessThan(X x, Y y)
Definition: TestSuite.h:91
bool differs(X x, Y y)
Definition: TestSuite.h:71

Definition at line 472 of file TestSuite.h.

◆ CXXTEST_INTEGRAL

#define CXXTEST_INTEGRAL (   CXXTEST_T)     CXXTEST_COMPARISONS( signed CXXTEST_T, unsigned CXXTEST_T, unsigned CXXTEST_T )

Definition at line 482 of file TestSuite.h.

◆ CXXTEST_SMALL_BIG

#define CXXTEST_SMALL_BIG (   CXXTEST_SMALL,
  CXXTEST_BIG 
)
Value:
CXXTEST_COMPARISONS( signed CXXTEST_SMALL, unsigned CXXTEST_BIG, unsigned CXXTEST_BIG ) \
CXXTEST_COMPARISONS( signed CXXTEST_BIG, unsigned CXXTEST_SMALL, unsigned CXXTEST_BIG )
#define CXXTEST_COMPARISONS(CXXTEST_X, CXXTEST_Y, CXXTEST_T)
Definition: TestSuite.h:472

◆ ETS_ASSERT

#define ETS_ASSERT (   e)    _ETS_ASSERT(__FILE__,__LINE__,e)

Definition at line 238 of file TestSuite.h.

◆ ETS_ASSERT_DELTA

#define ETS_ASSERT_DELTA (   x,
  y,
 
)    _ETS_ASSERT_DELTA(__FILE__,__LINE__,x,y,d)

Definition at line 372 of file TestSuite.h.

◆ ETS_ASSERT_DIFFERS

#define ETS_ASSERT_DIFFERS (   x,
  y 
)    _ETS_ASSERT_DIFFERS(__FILE__,__LINE__,x,y)

Definition at line 286 of file TestSuite.h.

◆ ETS_ASSERT_EQUALS

#define ETS_ASSERT_EQUALS (   x,
  y 
)    _ETS_ASSERT_EQUALS(__FILE__,__LINE__,x,y)

Definition at line 254 of file TestSuite.h.

◆ ETS_ASSERT_LESS_THAN

#define ETS_ASSERT_LESS_THAN (   x,
  y 
)    _ETS_ASSERT_LESS_THAN(__FILE__,__LINE__,x,y)

Definition at line 302 of file TestSuite.h.

◆ ETS_ASSERT_LESS_THAN_EQUALS

#define ETS_ASSERT_LESS_THAN_EQUALS (   x,
  y 
)    _ETS_ASSERT_LESS_THAN_EQUALS(__FILE__,__LINE__,x,y)

Definition at line 320 of file TestSuite.h.

◆ ETS_ASSERT_PREDICATE

#define ETS_ASSERT_PREDICATE (   p,
  x 
)    _ETS_ASSERT_PREDICATE(__FILE__,__LINE__,p,x)

Definition at line 338 of file TestSuite.h.

◆ ETS_ASSERT_RELATION

#define ETS_ASSERT_RELATION (   r,
  x,
  y 
)    _ETS_ASSERT_RELATION(__FILE__,__LINE__,r,x,y)

Definition at line 356 of file TestSuite.h.

◆ ETS_ASSERT_SAME_DATA

#define ETS_ASSERT_SAME_DATA (   x,
  y,
  s 
)    _ETS_ASSERT_SAME_DATA(__FILE__,__LINE__,x,y,s)

Definition at line 270 of file TestSuite.h.

◆ ETSM_ASSERT

#define ETSM_ASSERT (   m,
 
)    _ETSM_ASSERT(__FILE__,__LINE__,m,e)

Definition at line 244 of file TestSuite.h.

◆ ETSM_ASSERT_DELTA

#define ETSM_ASSERT_DELTA (   m,
  x,
  y,
 
)    _ETSM_ASSERT_DELTA(__FILE__,__LINE__,m,x,y,d)

Definition at line 378 of file TestSuite.h.

◆ ETSM_ASSERT_DIFFERS

#define ETSM_ASSERT_DIFFERS (   m,
  x,
  y 
)    _ETSM_ASSERT_DIFFERS(__FILE__,__LINE__,m,x,y)

Definition at line 292 of file TestSuite.h.

◆ ETSM_ASSERT_EQUALS

#define ETSM_ASSERT_EQUALS (   m,
  x,
  y 
)    _ETSM_ASSERT_EQUALS(__FILE__,__LINE__,m,x,y)

Definition at line 260 of file TestSuite.h.

◆ ETSM_ASSERT_LESS_THAN

#define ETSM_ASSERT_LESS_THAN (   m,
  x,
  y 
)    _ETSM_ASSERT_LESS_THAN(__FILE__,__LINE__,m,x,y)

Definition at line 308 of file TestSuite.h.

◆ ETSM_ASSERT_LESS_THAN_EQUALS

#define ETSM_ASSERT_LESS_THAN_EQUALS (   m,
  x,
  y 
)    _ETSM_ASSERT_LESS_THAN_EQUALS(__FILE__,__LINE__,m,x,y)

Definition at line 326 of file TestSuite.h.

◆ ETSM_ASSERT_PREDICATE

#define ETSM_ASSERT_PREDICATE (   m,
  p,
  x 
)    _ETSM_ASSERT_PREDICATE(__FILE__,__LINE__,m,p,x)

Definition at line 344 of file TestSuite.h.

◆ ETSM_ASSERT_RELATION

#define ETSM_ASSERT_RELATION (   m,
  r,
  x,
  y 
)    _ETSM_ASSERT_RELATION(__FILE__,__LINE__,m,r,x,y)

Definition at line 362 of file TestSuite.h.

◆ ETSM_ASSERT_SAME_DATA

#define ETSM_ASSERT_SAME_DATA (   m,
  x,
  y,
  s 
)    _ETSM_ASSERT_SAME_DATA(__FILE__,__LINE__,m,x,y,s)

Definition at line 276 of file TestSuite.h.

◆ TS_ABORT

#define TS_ABORT ( )    CxxTest::doAbortTest()

Definition at line 31 of file TestSuite.h.

◆ TS_ASSERT

#define TS_ASSERT (   e)    _TS_ASSERT(__FILE__,__LINE__,e)

Definition at line 239 of file TestSuite.h.

◆ TS_ASSERT_DELTA

#define TS_ASSERT_DELTA (   x,
  y,
 
)    _TS_ASSERT_DELTA(__FILE__,__LINE__,x,y,d)

Definition at line 373 of file TestSuite.h.

◆ TS_ASSERT_DIFFERS

#define TS_ASSERT_DIFFERS (   x,
  y 
)    _TS_ASSERT_DIFFERS(__FILE__,__LINE__,x,y)

Definition at line 287 of file TestSuite.h.

◆ TS_ASSERT_EQUALS

#define TS_ASSERT_EQUALS (   x,
  y 
)    _TS_ASSERT_EQUALS(__FILE__,__LINE__,x,y)

Definition at line 255 of file TestSuite.h.

◆ TS_ASSERT_LESS_THAN

#define TS_ASSERT_LESS_THAN (   x,
  y 
)    _TS_ASSERT_LESS_THAN(__FILE__,__LINE__,x,y)

Definition at line 303 of file TestSuite.h.

◆ TS_ASSERT_LESS_THAN_EQUALS

#define TS_ASSERT_LESS_THAN_EQUALS (   x,
  y 
)    _TS_ASSERT_LESS_THAN_EQUALS(__FILE__,__LINE__,x,y)

Definition at line 321 of file TestSuite.h.

◆ TS_ASSERT_PREDICATE

#define TS_ASSERT_PREDICATE (   p,
  x 
)    _TS_ASSERT_PREDICATE(__FILE__,__LINE__,p,x)

Definition at line 339 of file TestSuite.h.

◆ TS_ASSERT_RELATION

#define TS_ASSERT_RELATION (   r,
  x,
  y 
)    _TS_ASSERT_RELATION(__FILE__,__LINE__,r,x,y)

Definition at line 357 of file TestSuite.h.

◆ TS_ASSERT_SAME_DATA

#define TS_ASSERT_SAME_DATA (   x,
  y,
  s 
)    _TS_ASSERT_SAME_DATA(__FILE__,__LINE__,x,y,s)

Definition at line 271 of file TestSuite.h.

◆ TS_ASSERT_THROWS

#define TS_ASSERT_THROWS (   e,
 
)    _TS_ASSERT_THROWS(__FILE__,__LINE__,e,t)

Definition at line 391 of file TestSuite.h.

◆ TS_ASSERT_THROWS_ANYTHING

#define TS_ASSERT_THROWS_ANYTHING (   e)    _TS_ASSERT_THROWS_ANYTHING(__FILE__, __LINE__, e)

Definition at line 451 of file TestSuite.h.

◆ TS_ASSERT_THROWS_ASSERT

#define TS_ASSERT_THROWS_ASSERT (   e,
  t,
 
)    _TS_ASSERT_THROWS_ASSERT(__FILE__,__LINE__,e,t,a)

Definition at line 406 of file TestSuite.h.

◆ TS_ASSERT_THROWS_DELTA

#define TS_ASSERT_THROWS_DELTA (   e,
  t,
  x,
  y,
 
)    TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_DELTA(x,y,d))

Definition at line 420 of file TestSuite.h.

◆ TS_ASSERT_THROWS_DIFFERS

#define TS_ASSERT_THROWS_DIFFERS (   e,
  t,
  x,
  y 
)    TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_DIFFERS(x,y))

Definition at line 416 of file TestSuite.h.

◆ TS_ASSERT_THROWS_EQUALS

#define TS_ASSERT_THROWS_EQUALS (   e,
  t,
  x,
  y 
)    TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_EQUALS(x,y))

Definition at line 412 of file TestSuite.h.

◆ TS_ASSERT_THROWS_LESS_THAN

#define TS_ASSERT_THROWS_LESS_THAN (   e,
  t,
  x,
  y 
)    TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_LESS_THAN(x,y))

Definition at line 428 of file TestSuite.h.

◆ TS_ASSERT_THROWS_LESS_THAN_EQUALS

#define TS_ASSERT_THROWS_LESS_THAN_EQUALS (   e,
  t,
  x,
  y 
)    TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_LESS_THAN_EQUALS(x,y))

Definition at line 432 of file TestSuite.h.

◆ TS_ASSERT_THROWS_NOTHING

#define TS_ASSERT_THROWS_NOTHING (   e)    _TS_ASSERT_THROWS_NOTHING(__FILE__,__LINE__,e)

Definition at line 463 of file TestSuite.h.

◆ TS_ASSERT_THROWS_PREDICATE

#define TS_ASSERT_THROWS_PREDICATE (   e,
  t,
  p,
  v 
)    TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_PREDICATE(p,v))

Definition at line 436 of file TestSuite.h.

◆ TS_ASSERT_THROWS_RELATION

#define TS_ASSERT_THROWS_RELATION (   e,
  t,
  r,
  x,
  y 
)    TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_RELATION(r,x,y))

Definition at line 440 of file TestSuite.h.

◆ TS_ASSERT_THROWS_SAME_DATA

#define TS_ASSERT_THROWS_SAME_DATA (   e,
  t,
  x,
  y,
  s 
)    TS_ASSERT_THROWS_ASSERT(e,t,TS_ASSERT_SAME_DATA(x,y,s))

Definition at line 424 of file TestSuite.h.

◆ TS_FAIL

#define TS_FAIL (   e)    _TS_FAIL( __FILE__, __LINE__, e )

Definition at line 229 of file TestSuite.h.

◆ TS_TRACE

#define TS_TRACE (   e)    _TS_TRACE( __FILE__, __LINE__, e )

Definition at line 221 of file TestSuite.h.

◆ TS_WARN

#define TS_WARN (   e)    _TS_WARN( __FILE__, __LINE__, e )

Definition at line 225 of file TestSuite.h.

◆ TSM_ASSERT

#define TSM_ASSERT (   m,
 
)    _TSM_ASSERT(__FILE__,__LINE__,m,e)

Definition at line 245 of file TestSuite.h.

◆ TSM_ASSERT_DELTA

#define TSM_ASSERT_DELTA (   m,
  x,
  y,
 
)    _TSM_ASSERT_DELTA(__FILE__,__LINE__,m,x,y,d)

Definition at line 379 of file TestSuite.h.

◆ TSM_ASSERT_DIFFERS

#define TSM_ASSERT_DIFFERS (   m,
  x,
  y 
)    _TSM_ASSERT_DIFFERS(__FILE__,__LINE__,m,x,y)

Definition at line 293 of file TestSuite.h.

◆ TSM_ASSERT_EQUALS

#define TSM_ASSERT_EQUALS (   m,
  x,
  y 
)    _TSM_ASSERT_EQUALS(__FILE__,__LINE__,m,x,y)

Definition at line 261 of file TestSuite.h.

◆ TSM_ASSERT_LESS_THAN

#define TSM_ASSERT_LESS_THAN (   m,
  x,
  y 
)    _TSM_ASSERT_LESS_THAN(__FILE__,__LINE__,m,x,y)

Definition at line 309 of file TestSuite.h.

◆ TSM_ASSERT_LESS_THAN_EQUALS

#define TSM_ASSERT_LESS_THAN_EQUALS (   m,
  x,
  y 
)    _TSM_ASSERT_LESS_THAN_EQUALS(__FILE__,__LINE__,m,x,y)

Definition at line 327 of file TestSuite.h.

◆ TSM_ASSERT_PREDICATE

#define TSM_ASSERT_PREDICATE (   m,
  p,
  x 
)    _TSM_ASSERT_PREDICATE(__FILE__,__LINE__,m,p,x)

Definition at line 345 of file TestSuite.h.

◆ TSM_ASSERT_RELATION

#define TSM_ASSERT_RELATION (   m,
  r,
  x,
  y 
)    _TSM_ASSERT_RELATION(__FILE__,__LINE__,m,r,x,y)

Definition at line 363 of file TestSuite.h.

◆ TSM_ASSERT_SAME_DATA

#define TSM_ASSERT_SAME_DATA (   m,
  x,
  y,
  s 
)    _TSM_ASSERT_SAME_DATA(__FILE__,__LINE__,m,x,y,s)

Definition at line 277 of file TestSuite.h.

◆ TSM_ASSERT_THROWS

#define TSM_ASSERT_THROWS (   m,
  e,
 
)    _TSM_ASSERT_THROWS(__FILE__,__LINE__,m,e,t)

Definition at line 394 of file TestSuite.h.

◆ TSM_ASSERT_THROWS_ANYTHING

#define TSM_ASSERT_THROWS_ANYTHING (   m,
 
)    _TSM_ASSERT_THROWS_ANYTHING(__FILE__,__LINE__,m,e)

Definition at line 454 of file TestSuite.h.

◆ TSM_ASSERT_THROWS_ASSERT

#define TSM_ASSERT_THROWS_ASSERT (   m,
  e,
  t,
 
)    _TSM_ASSERT_THROWS_ASSERT(__FILE__,__LINE__,m,e,t,a)

Definition at line 409 of file TestSuite.h.

◆ TSM_ASSERT_THROWS_DELTA

#define TSM_ASSERT_THROWS_DELTA (   m,
  e,
  t,
  x,
  y,
 
)    TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_DELTA(m,x,y,d))

Definition at line 421 of file TestSuite.h.

◆ TSM_ASSERT_THROWS_DIFFERS

#define TSM_ASSERT_THROWS_DIFFERS (   m,
  e,
  t,
  x,
  y 
)    TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_DIFFERS(m,x,y))

Definition at line 417 of file TestSuite.h.

◆ TSM_ASSERT_THROWS_EQUALS

#define TSM_ASSERT_THROWS_EQUALS (   m,
  e,
  t,
  x,
  y 
)    TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_EQUALS(m,x,y))

Definition at line 413 of file TestSuite.h.

◆ TSM_ASSERT_THROWS_LESS_THAN

#define TSM_ASSERT_THROWS_LESS_THAN (   m,
  e,
  t,
  x,
  y 
)    TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_LESS_THAN(m,x,y))

Definition at line 429 of file TestSuite.h.

◆ TSM_ASSERT_THROWS_LESS_THAN_EQUALS

#define TSM_ASSERT_THROWS_LESS_THAN_EQUALS (   m,
  e,
  t,
  x,
  y 
)    TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_LESS_THAN_EQUALS(m,x,y))

Definition at line 433 of file TestSuite.h.

◆ TSM_ASSERT_THROWS_NOTHING

#define TSM_ASSERT_THROWS_NOTHING (   m,
 
)    _TSM_ASSERT_THROWS_NOTHING(__FILE__,__LINE__,m,e)

Definition at line 466 of file TestSuite.h.

◆ TSM_ASSERT_THROWS_PREDICATE

#define TSM_ASSERT_THROWS_PREDICATE (   m,
  e,
  t,
  p,
  v 
)    TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_PREDICATE(m,p,v))

Definition at line 437 of file TestSuite.h.

◆ TSM_ASSERT_THROWS_RELATION

#define TSM_ASSERT_THROWS_RELATION (   m,
  e,
  t,
  r,
  x,
  y 
)    TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_RELATION(m,r,x,y))

Definition at line 441 of file TestSuite.h.

◆ TSM_ASSERT_THROWS_SAME_DATA

#define TSM_ASSERT_THROWS_SAME_DATA (   m,
  e,
  t,
  x,
  y,
  s 
)    TSM_ASSERT_THROWS_ASSERT(m,e,t,TSM_ASSERT_SAME_DATA(m,x,y,s))

Definition at line 425 of file TestSuite.h.