Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[dd57cf]: src / include / testlib.h Maximize Restore History

Download this file

testlib.h    38 lines (30 with data), 823 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef TEST_LIB_H_
#define TEST_LIB_H_
#include <vector>
//A mix-in class for test fixtures that provides some useful constants
class JAGSFixture
{
public:
JAGSFixture();
protected:
//tolerance for equality tests
double tol;
//Logical vectors of length 1
std::vector<bool> F; //False
std::vector<bool> T; //True
//Logical vectors of length 2
std::vector<bool> FF; //False, False
std::vector<bool> FT;
std::vector<bool> TF;
std::vector<bool> TT;
//Logical vectors of length 3
std::vector<bool> FFF; //False, False, False
std::vector<bool> FFT;
std::vector<bool> FTF;
std::vector<bool> FTT;
std::vector<bool> TFF;
std::vector<bool> TFT;
std::vector<bool> TTF;
std::vector<bool> TTT;
};
#endif /* TEST_LIB_H */