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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1799 - (hide annotations)
Wed Sep 17 06:33:18 2008 UTC (11 years, 4 months ago) by jfenwick
File MIME type: text/plain
File size: 1402 byte(s)
Added Data::copySelf() [Note: this is exposed as copy() in python].
This method returns a pointer to a deep copy of the target.
There are c++ tests but no python tests for this yet.

All DataAbstracts now have a deepCopy() which simplifies the 
implementation of the compy methods.


1 ksteube 1312
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 jgs 82 #if !defined DataTestCase_20040624_H
17     #define DataTestCase_20040624_H
18    
19 gross 700 #include "tools/CppUnitTest/TestCase.h"
20     #include "tools/CppUnitTest/TestSuite.h"
21     #include "tools/CppUnitTest/TestCaller.h"
22 jgs 82
23 gross 713 #define REL_TOL ((double)1.e-10)
24    
25 jgs 82 class DataTestCase : public CppUnitTest::TestCase
26     {
27     public:
28    
29     //
30     // setUp is called before each test method to set up test state
31     void setUp();
32    
33     //
34     // tearDown is called after each test method is called.
35     void tearDown();
36    
37     //
38     // A test method must return void and have no arguments
39    
40     void testAll();
41     void testMore();
42     void testConstructors();
43     void testDataConstant();
44     void testDataTagged();
45     void testDataTaggedExceptions();
46     void testSlicing();
47     void testOperations();
48 jgs 151 void testMemAlloc();
49 jfenwick 1799 void testCopying();
50 jgs 82
51     DataTestCase (std::string name) : TestCase (name) {}
52     ~DataTestCase() {}
53    
54     //
55     //
56     // return the suite of tests to perform
57     //
58    
59     static CppUnitTest::TestSuite* suite ();
60    
61     };
62    
63     #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26