matrix module  1.00.00
www.protokollkonverter.de
assert extensions

Macros

#define assertTrue(x)   assert(x)
 test result on true More...
 
#define assertFalse(x)   assert((x) == 0)
 test result on false More...
 
#define assertString(x, y)   assert(strcmp(x,y)) == 0)
 test two strings on equal More...
 
#define assertDouble(x, y)   assert(floor((x)*1e10) == floor((y)*1e10))
 test two double values on equal More...
 
#define assertMemory(x, y, z)   assert(memcmp(x,y,z) == 0)
 test two memory areas on equal More...
 

Detailed Description

Macro Definition Documentation

#define assertTrue (   x)    assert(x)

test result on true

Examples:
testMatrix.cpp.
#define assertFalse (   x)    assert((x) == 0)

test result on false

Examples:
testMatrix.cpp.
#define assertString (   x,
 
)    assert(strcmp(x,y)) == 0)

test two strings on equal

#define assertDouble (   x,
 
)    assert(floor((x)*1e10) == floor((y)*1e10))

test two double values on equal

Examples:
testMatrix.cpp.
#define assertMemory (   x,
  y,
 
)    assert(memcmp(x,y,z) == 0)

test two memory areas on equal

Examples:
testMatrix.cpp.