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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2721 - (show annotations)
Fri Oct 16 05:40:12 2009 UTC (10 years ago) by jfenwick
File MIME type: text/plain
File size: 1556 byte(s)
minval and maxval are now lazy operations (they weren't before).
Whether or not Lsup, sup and inf resolve their arguments before computing answers is controlled by the escriptParam 'RESOLVE_COLLECTIVE'.
Note: integrate() still forces a resolve.

Added some unit tests for operations which weren't tested before.
Added deepcopy implementations for lazy operations which got missed somehow.
1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2009 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
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 testSome();
40 void testConstructors();
41 void testDataConstant();
42 void testDataTagged();
43 void testDataTaggedExceptions();
44 void testSlicing();
45 void testOperations();
46 void testMoreOperations();
47 void testMemAlloc();
48 void testCopying();
49 void testResolveType();
50 void testBinary();
51
52
53 DataTestCase (std::string name) : TestCase (name) {}
54 ~DataTestCase() {}
55
56 //
57 //
58 // return the suite of tests to perform
59 //
60
61 static CppUnitTest::TestSuite* suite ();
62
63 private:
64 void testCopyingWorker(bool delayed);
65 void testSlicingWorker(bool delayed);
66
67
68 void testSomeDriver(bool autolazy);
69
70 };
71
72 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26