/[escript]/branches/arrayview_from_1695_trunk/escript/test/DataMathsTestCase.h
ViewVC logotype

Annotation of /branches/arrayview_from_1695_trunk/escript/test/DataMathsTestCase.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1734 - (hide annotations)
Thu Aug 28 06:11:56 2008 UTC (11 years, 4 months ago) by jfenwick
File MIME type: text/plain
File size: 1478 byte(s)
Added operations to Datatypes:
checkOffset
copySlice
copySliceFrom

Fixed some error reporting using EsysAssert.

Added two new c++ test suites:
DataTypesTest
DataMathsTest

Note that the test suite does not compile with dodebug=yes. There is an issue with linking one of the exception functions. I'm going to leave this 
until I have finished the rest of the work, perhaps Ken's scons changes will fix it.


1 jfenwick 1734
2     /* $Id: DataMathsTestCase.h 1312 2008-08-27 06:18:44Z jfenwick $ */
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 DataMathsTestCase_20080828_H
17     #define DataMathsTestCase_20080828_H
18    
19     #include "tools/CppUnitTest/TestCase.h"
20     #include "tools/CppUnitTest/TestSuite.h"
21     #include "tools/CppUnitTest/TestCaller.h"
22    
23     #define REL_TOL ((double)1.e-10)
24    
25     class DataMathsTestCase : 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     // 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     // DataArrayView class
39     void testAll();
40     void testShapeToString();
41     void testScalarView();
42     void testResultSliceShape();
43     void testSlicing();
44     void testMatMult();
45     void testUnaryOp();
46     void testBinaryOp();
47     void testReductionOp();
48    
49     DataMathsTestCase (std::string name) : TestCase (name) {}
50     ~DataMathsTestCase() {}
51     //
52     //
53     // return the suite of tests to perform
54     //
55     static CppUnitTest::TestSuite* suite ();
56     };
57    
58     #endif

  ViewVC Help
Powered by ViewVC 1.1.26