Bridge++
Ver. 2.0.2
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
19
#include "
Parameters/parameterManager_YAML.h
"
20
#include "
ResourceManager/threadManager.h
"
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
Test::verify
int verify(const double result, const double expected, double eps)
Definition:
test.cpp:27
bridgeIO.h
parameterManager_YAML.h
timer.h
threadManager.h
Test
Definition:
test.cpp:26
Test::default_precision
static const int default_precision
Definition:
test.h:32
testManager.h
Test::default_output_precision
static const int default_output_precision
Definition:
test.h:33
Bridge::vout
BridgeIO vout
Definition:
bridgeIO.cpp:512
tests
src
test.h
Generated on Sat Feb 10 2024 14:20:01 for Bridge++ by
1.8.17