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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 854 - (show annotations)
Thu Sep 21 05:29:42 2006 UTC (13 years ago) by gross
File MIME type: text/plain
File size: 1795 byte(s)
Some modifications to the binary operations +,-,*/, pow. 
The code is a bit simpler now and more efficient has there is
no reseising required now. the resizing method has been removed as
it is very, very inefficient. Even serial code should be faster now.
It is now forbidden to do an inplace update of scalar data object with an object 
of rank >0 as this is very slow (and does not make much sense). 


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 DataTaggedTestCase_20040616_H
16 #define DataTaggedTestCase_20040616_H
17
18 #include "tools/CppUnitTest/TestCase.h"
19 #include "tools/CppUnitTest/TestSuite.h"
20 #include "tools/CppUnitTest/TestCaller.h"
21
22 class DataTaggedTestCase : public CppUnitTest::TestCase
23 {
24 public:
25
26 //
27 // setUp is called before each test method to set up test state
28 void setUp();
29 //
30 // tearDown is called after each test method is called.
31 void tearDown();
32
33 //
34 // A test method must return void and have no arguments
35 // DataTagged class
36 void testAll();
37 void testAddTaggedValues();
38 void testSetTaggedValue();
39 void testCopyConstructors();
40 void testOperations();
41 void testGetSlice();
42 void testSetSlice();
43
44 DataTaggedTestCase (std::string name) : TestCase (name) {}
45 ~DataTaggedTestCase() {}
46 //
47 //
48 // return the suite of tests to perform
49 //
50 static CppUnitTest::TestSuite* suite ();
51 };
52
53 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26