Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test.h
Go to the documentation of this file.
1 
14 #ifndef TEST_INCLUDED
15 #define TEST_INCLUDED
16 
17 #define EXIT_SKIP -1
18 
21 
22 #include "Tools/timer.h"
23 
24 #include "IO/bridgeIO.h"
25 using Bridge::vout;
26 
27 #ifdef USE_TESTMANAGER_AUTOREGISTER
28 #include "testManager.h"
29 #endif
30 
31 namespace Test {
32  static const int default_precision = 11;
33  static const int default_output_precision = 15;
34 
35  // utility routines for verifying test result.
36  // returns 0 if result and expected agree within specified criterion
37  // where the criterion is 10^-precision.
38 
39  int verify(const double result, const double expected, double eps = 0.0);
40 }
41 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
static const int default_output_precision
Definition: test.h:33
static const int default_precision
Definition: test.h:32
int verify(const double result, const double expected, double eps)
Definition: test.cpp:27