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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1388 - (show annotations)
Fri Jan 11 07:45:58 2008 UTC (11 years, 3 months ago) by trankine
File MIME type: text/plain
File size: 1441 byte(s)
And get the *(&(*&(* name right
1
2 /* $Id$ */
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 DataArrayViewTestCase_20040407_H
17 #define DataArrayViewTestCase_20040407_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 DataArrayViewTestCase : 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 DataArrayViewTestCase (std::string name) : TestCase (name) {}
50 ~DataArrayViewTestCase() {}
51 //
52 //
53 // return the suite of tests to perform
54 //
55 static CppUnitTest::TestSuite* suite ();
56 };
57
58 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26