1 |
|
2 |
/******************************************************* |
3 |
* |
4 |
* Copyright (c) 2003-2010 by University of Queensland |
5 |
* Earth Systems Science Computational Center (ESSCC) |
6 |
* http://www.uq.edu.au/esscc |
7 |
* |
8 |
* Primary Business: Queensland, Australia |
9 |
* Licensed under the Open Software License version 3.0 |
10 |
* http://www.opensource.org/licenses/osl-3.0.php |
11 |
* |
12 |
*******************************************************/ |
13 |
|
14 |
|
15 |
#if !defined DataMathsTestCase_20080828_H |
16 |
#define DataMathsTestCase_20080828_H |
17 |
|
18 |
#include <cppunit/TestFixture.h> |
19 |
#include <cppunit/TestSuite.h> |
20 |
|
21 |
#define REL_TOL ((double)1.e-10) |
22 |
|
23 |
class DataMathsTestCase : public CppUnit::TestFixture |
24 |
{ |
25 |
public: |
26 |
|
27 |
void testAll(); |
28 |
void testShapeToString(); |
29 |
void testScalarView(); |
30 |
void testResultSliceShape(); |
31 |
void testSlicing(); |
32 |
void testMatMult(); |
33 |
void testUnaryOp(); |
34 |
void testBinaryOp(); |
35 |
void testReductionOp(); |
36 |
|
37 |
static CppUnit::TestSuite* suite(); |
38 |
}; |
39 |
|
40 |
#endif |
41 |
|