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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2147 - (hide annotations)
Wed Dec 10 04:41:26 2008 UTC (11 years, 2 months ago) by jfenwick
File MIME type: text/plain
File size: 1527 byte(s)
Made some changes to c++ unit tests to accomodate AUTOLAZY.
whereZero and whereNonZero can now work with lazy data.
There are some double frees if AUTOLAZY is turned on so don't use it yet.
1 ksteube 1312
2     /*******************************************************
3 ksteube 1811 *
4     * Copyright (c) 2003-2008 by University of Queensland
5     * Earth Systems Science Computational Center (ESSCC)
6     * http://www.uq.edu.au/esscc
7     *
8     * Primary Business: Queensland, Australia
9     * Licensed under the Open Software License version 3.0
10     * http://www.opensource.org/licenses/osl-3.0.php
11     *
12     *******************************************************/
13 ksteube 1312
14 ksteube 1811
15 jgs 82 #if !defined DataTestCase_20040624_H
16     #define DataTestCase_20040624_H
17    
18 gross 700 #include "tools/CppUnitTest/TestCase.h"
19     #include "tools/CppUnitTest/TestSuite.h"
20     #include "tools/CppUnitTest/TestCaller.h"
21 jgs 82
22 gross 713 #define REL_TOL ((double)1.e-10)
23    
24 jgs 82 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 jfenwick 2005 void testSome();
40 jgs 82 void testConstructors();
41     void testDataConstant();
42     void testDataTagged();
43     void testDataTaggedExceptions();
44     void testSlicing();
45     void testOperations();
46 jgs 151 void testMemAlloc();
47 jfenwick 1799 void testCopying();
48 jfenwick 2005 void testResolveType();
49     void testBinary();
50 jgs 82
51 jfenwick 2147
52 jgs 82 DataTestCase (std::string name) : TestCase (name) {}
53     ~DataTestCase() {}
54    
55     //
56     //
57     // return the suite of tests to perform
58     //
59    
60     static CppUnitTest::TestSuite* suite ();
61    
62 jfenwick 2005 private:
63     void testCopyingWorker(bool delayed);
64     void testSlicingWorker(bool delayed);
65    
66 jfenwick 2147
67     void testSomeDriver(bool autolazy);
68    
69 jgs 82 };
70    
71     #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26