1 |
/* |
2 |
***************************************************************************** |
3 |
* * |
4 |
* COPYRIGHT ACcESS - All Rights Reserved * |
5 |
* * |
6 |
* This software is the property of ACcESS. No part of this code * |
7 |
* may be copied in any form or by any means without the expressed written * |
8 |
* consent of ACcESS. Copying, use or modification of this software * |
9 |
* by any unauthorised person is illegal unless that person has a software * |
10 |
* license agreement with ACcESS. * |
11 |
* * |
12 |
***************************************************************************** |
13 |
*/ |
14 |
#if !defined DataArrayViewTestCase_20040407_H |
15 |
#define DataArrayViewTestCase_20040407_H |
16 |
|
17 |
#include "CppUnitTest/TestCase.h" |
18 |
#include "CppUnitTest/TestSuite.h" |
19 |
#include "CppUnitTest/TestCaller.h" |
20 |
|
21 |
class DataArrayViewTestCase : public CppUnitTest::TestCase |
22 |
{ |
23 |
public: |
24 |
|
25 |
// |
26 |
// setUp is called before each test method to set up test state |
27 |
void setUp(); |
28 |
// |
29 |
// tearDown is called after each test method is called. |
30 |
void tearDown(); |
31 |
|
32 |
// |
33 |
// A test method must return void and have no arguments |
34 |
// DataArrayView class |
35 |
void testAll(); |
36 |
void testShapeToString(); |
37 |
void testScalarView(); |
38 |
void testResultSliceShape(); |
39 |
void testSlicing(); |
40 |
void testMatMult(); |
41 |
void testUnaryOp(); |
42 |
void testBinaryOp(); |
43 |
void testReductionOp(); |
44 |
|
45 |
DataArrayViewTestCase (std::string name) : TestCase (name) {} |
46 |
~DataArrayViewTestCase() {} |
47 |
// |
48 |
// |
49 |
// return the suite of tests to perform |
50 |
// |
51 |
static CppUnitTest::TestSuite* suite (); |
52 |
}; |
53 |
|
54 |
#endif |