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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1796 - (show annotations)
Wed Sep 17 01:45:46 2008 UTC (11 years, 1 month ago) by jfenwick
File MIME type: text/plain
File size: 1502 byte(s)
Merged noarrayview branch onto trunk.


1
2 /* $Id: DataTypesTestCase.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 DataTypesTestCase_20080827_H
17 #define DataTypesTestCase_20080827_H
18
19 #include "tools/CppUnitTest/TestCase.h"
20 #include "tools/CppUnitTest/TestSuite.h"
21 #include "tools/CppUnitTest/TestCaller.h"
22
23
24 #define REL_TOL ((double)1.e-10)
25
26 class DataTypesTestCase : public CppUnitTest::TestCase
27 {
28 public:
29
30 //
31 // setUp is called before each test method to set up test state
32 void setUp();
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 // DataArrayView class
40 void testAll();
41 void testShapeToString();
42 void testScalarView();
43 void testResultSliceShape();
44 void testSlicing();
45 void testMatMult();
46 void testUnaryOp();
47 void testBinaryOp();
48 void testReductionOp();
49 void testShapeFns();
50
51 DataTypesTestCase (std::string name) : TestCase (name) {}
52 ~DataTypesTestCase() {}
53 //
54 //
55 // return the suite of tests to perform
56 //
57 static CppUnitTest::TestSuite* suite ();
58 };
59
60 #endif

  ViewVC Help
Powered by ViewVC 1.1.26