-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestArray2f.cpp
43 lines (33 loc) · 1020 Bytes
/
testArray2f.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/zfparray2.h"
#include "array/zfparray3.h"
#include "array/zfpfactory.h"
using namespace zfp;
extern "C" {
#include "constants/2dFloat.h"
}
#include "gtest/gtest.h"
#include "utils/gtestFloatEnv.h"
#include "utils/gtestBaseFixture.h"
#include "utils/predicates.h"
class Array2fTestEnv : public ArrayFloatTestEnv {
public:
virtual int getDims() { return 2; }
};
Array2fTestEnv* const testEnv = new Array2fTestEnv;
class Array2fTest : public ArrayNdTestFixture {};
#define TEST_FIXTURE Array2fTest
#define ZFP_ARRAY_TYPE array2f
#define ZFP_ARRAY_TYPE_WRONG_SCALAR array2d
#define ZFP_ARRAY_TYPE_WRONG_DIM array3f
#define ZFP_ARRAY_TYPE_WRONG_SCALAR_DIM array3d
#define ZFP_ARRAY_NOT_INCLUDED_TYPE array1f
#define UINT uint32
#define SCALAR float
#define DIMS 2
#include "testArrayBase.cpp"
#include "testArray2Base.cpp"
int main(int argc, char* argv[]) {
::testing::InitGoogleTest(&argc, argv);
static_cast<void>(::testing::AddGlobalTestEnvironment(testEnv));
return RUN_ALL_TESTS();
}