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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1802 - (show annotations)
Tue Sep 23 01:03:29 2008 UTC (11 years ago) by jfenwick
File MIME type: text/plain
File size: 1385 byte(s)
Added canTag methods to FunctionSpace and AbstractDomain (and its 
offspring).
This checks to see if the domain supports tags for the given type of 
function space.

Constructors for DataTagged now throw exceptions if you attempt to make 
a DataTagged with a FunctionSpace which does not support tags.
To allow the default constructor to work, NullDomain has a single 
functioncode which "supports" tagging.

Fixed a bug in DataTagged::toString and DataTypes::pointToString.

Added FunctionSpace::getListOfTagsSTL.

algorithm(DataTagged, BinaryFunction) in DataAlgorithm now only 
processes tags known to be in use.
This fixes mantis issue #0000186.

Added comment to Data.h intro warning about holding references if the 
underlying DataAbstract changes.

_python_ unit tests have been updated to test TaggedData with invalid 
FunctionSpaces and to give the correct answers to Lsup etc.


1
2 /* $Id$ */
3
4 /*******************************************************
5 *
6 * Copyright 2003-2007 by ACceSS MNRF
7 * Copyright 2007 by University of Queensland
8 *
9 * http://esscc.uq.edu.au
10 * Primary Business: Queensland, Australia
11 * Licensed under the Open Software License version 3.0
12 * http://www.opensource.org/licenses/osl-3.0.php
13 *
14 *******************************************************/
15
16 #if !defined DataTaggedTestCase_20040616_H
17 #define DataTaggedTestCase_20040616_H
18
19 #include "tools/CppUnitTest/TestCase.h"
20 #include "tools/CppUnitTest/TestSuite.h"
21 #include "tools/CppUnitTest/TestCaller.h"
22
23
24 class DataTaggedTestCase : 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 // tearDown is called after each test method is called.
33 void tearDown();
34
35 //
36 // A test method must return void and have no arguments
37 // DataTagged class
38 void testAll();
39 void testAddTaggedValues();
40 void testSetTaggedValue();
41 void testCopyConstructors();
42 void testOperations();
43 void testGetSlice();
44 void testSetSlice();
45 // void testFunctionSpaces();
46
47
48 DataTaggedTestCase (std::string name) : TestCase (name) {}
49 ~DataTaggedTestCase() {}
50 //
51 //
52 // return the suite of tests to perform
53 //
54 static CppUnitTest::TestSuite* suite ();
55 };
56
57 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26