Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Classes | Namespaces | Defines
basics/testcase.hh File Reference
#include <iostream>
#include <string>
#include <iosfwd>
#include <complex>
Include dependency graph for testcase.hh:

Go to the source code of this file.

Classes

class  test::TestCase
 Base class for tests. More...

Namespaces

namespace  test
 

Unit tests.


Defines

#define _fail(str)   do_fail(str, __FILE__, __LINE__)
 Explicitly fails a test.
#define _numtest(num, orig)   do_numtest(num, orig, #num, #orig, __FILE__, __LINE__)
 Tests if num and orig are equal up to a rel. difference of 1e-10.
#define _numtesttol(num, orig, tol)   do_numtest(num, orig, #num, #orig, __FILE__, __LINE__, tol)
 Tests if num and orig are equal up to a rel. difference of tol.
#define _test(cond)   do_test(cond, #cond, __FILE__, __LINE__)
 Tests if cond is true (test passed) or not (test failed)

Define Documentation

#define _fail (   str)    do_fail(str, __FILE__, __LINE__)

Explicitly fails a test.

Definition at line 79 of file testcase.hh.

#define _numtest (   num,
  orig 
)    do_numtest(num, orig, #num, #orig, __FILE__, __LINE__)

Tests if num and orig are equal up to a rel. difference of 1e-10.

Definition at line 75 of file testcase.hh.

#define _numtesttol (   num,
  orig,
  tol 
)    do_numtest(num, orig, #num, #orig, __FILE__, __LINE__, tol)

Tests if num and orig are equal up to a rel. difference of tol.

Definition at line 77 of file testcase.hh.

#define _test (   cond)    do_test(cond, #cond, __FILE__, __LINE__)

Tests if cond is true (test passed) or not (test failed)

Definition at line 73 of file testcase.hh.


Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)