/[escript]/trunk/escript/test/DataArrayViewTestCase.h
ViewVC logotype

Contents of /trunk/escript/test/DataArrayViewTestCase.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 713 - (show annotations)
Thu Apr 27 05:03:44 2006 UTC (13 years, 4 months ago) by gross
File MIME type: text/plain
File size: 1877 byte(s)
relative error tests have been introduced into a few more of the unit test.
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 "tools/CppUnitTest/TestCase.h"
18 #include "tools/CppUnitTest/TestSuite.h"
19 #include "tools/CppUnitTest/TestCaller.h"
20
21 #define REL_TOL ((double)1.e-10)
22
23 class DataArrayViewTestCase : public CppUnitTest::TestCase
24 {
25 public:
26
27 //
28 // setUp is called before each test method to set up test state
29 void setUp();
30 //
31 // tearDown is called after each test method is called.
32 void tearDown();
33
34 //
35 // A test method must return void and have no arguments
36 // DataArrayView class
37 void testAll();
38 void testShapeToString();
39 void testScalarView();
40 void testResultSliceShape();
41 void testSlicing();
42 void testMatMult();
43 void testUnaryOp();
44 void testBinaryOp();
45 void testReductionOp();
46
47 DataArrayViewTestCase (std::string name) : TestCase (name) {}
48 ~DataArrayViewTestCase() {}
49 //
50 //
51 // return the suite of tests to perform
52 //
53 static CppUnitTest::TestSuite* suite ();
54 };
55
56 #endif

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26