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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 964 - (show annotations)
Tue Feb 13 05:10:26 2007 UTC (12 years, 7 months ago) by gross
File MIME type: text/plain
File size: 1824 byte(s)
The set/getRefVal functions of Data objects have been removed (mainly to avoid later problems with MPI).
Moreover, a faster access to the reference id of samples has been introduced. I don't think that anybody will
profit form this at this stage but it will allow a faster dump of data objects.


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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26