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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1811 - (hide annotations)
Thu Sep 25 23:11:13 2008 UTC (11 years, 5 months ago) by ksteube
File MIME type: text/plain
File size: 1386 byte(s)
Copyright updated in all files

1 jfenwick 1734
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 jfenwick 1734
14 ksteube 1811
15 jfenwick 1734 #if !defined DataMathsTestCase_20080828_H
16     #define DataMathsTestCase_20080828_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 DataMathsTestCase : 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     // DataArrayView class
38     void testAll();
39     void testShapeToString();
40     void testScalarView();
41     void testResultSliceShape();
42     void testSlicing();
43     void testMatMult();
44     void testUnaryOp();
45     void testBinaryOp();
46     void testReductionOp();
47    
48     DataMathsTestCase (std::string name) : TestCase (name) {}
49     ~DataMathsTestCase() {}
50     //
51     //
52     // return the suite of tests to perform
53     //
54     static CppUnitTest::TestSuite* suite ();
55     };
56    
57     #endif

  ViewVC Help
Powered by ViewVC 1.1.26