-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestArray3d.cpp
43 lines (33 loc) · 1 KB
/
testArray3d.cpp
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
38
39
40
41
42
43
#include "array/zfparray3.h"
#include "array/zfparray1.h"
#include "array/zfpfactory.h"
using namespace zfp;
extern "C" {
#include "constants/3dDouble.h"
}
#include "gtest/gtest.h"
#include "utils/gtestDoubleEnv.h"
#include "utils/gtestBaseFixture.h"
#include "utils/predicates.h"
class Array3dTestEnv : public ArrayDoubleTestEnv {
public:
virtual int getDims() { return 3; }
};
Array3dTestEnv* const testEnv = new Array3dTestEnv;
class Array3dTest : public ArrayNdTestFixture {};
#define TEST_FIXTURE Array3dTest
#define ZFP_ARRAY_TYPE array3d
#define ZFP_ARRAY_TYPE_WRONG_SCALAR array3f
#define ZFP_ARRAY_TYPE_WRONG_DIM array1d
#define ZFP_ARRAY_TYPE_WRONG_SCALAR_DIM array1f
#define ZFP_ARRAY_NOT_INCLUDED_TYPE array2d
#define UINT uint64
#define SCALAR double
#define DIMS 3
#include "testArrayBase.cpp"
#include "testArray3Base.cpp"
int main(int argc, char* argv[]) {
::testing::InitGoogleTest(&argc, argv);
static_cast<void>(::testing::AddGlobalTestEnvironment(testEnv));
return RUN_ALL_TESTS();
}