/[escript]/trunk/bruce/test/BruceTestCase.h
ViewVC logotype

Contents of /trunk/bruce/test/BruceTestCase.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 713 - (show annotations)
Thu Apr 27 05:03:44 2006 UTC (16 years, 11 months ago) by gross
File MIME type: text/plain
File size: 1942 byte(s)
relative error tests have been introduced into a few more of the unit test.
1 /*
2 *****************************************************************************
3 * *
4 * COPYRIGHT ACcESS - All Rights Reserved *
5 * *
6 * This software is the property of ACcESS. No part of this code *
7 * may be copied in any form or by any means without the expressed written *
8 * consent of ACcESS. Copying, use or modification of this software *
9 * by any unauthorised person is illegal unless that person has a software *
10 * license agreement with ACcESS. *
11 * *
12 *****************************************************************************
13 */
14
15 #if !defined BruceTestCase_20050829_H
16 #define BruceTestCase_20050829_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 BruceTestCase : 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 void testConstructorException();
38 void testNull();
39 void testZero();
40 void test1d();
41 void test2d();
42 void test3d();
43 void testBig();
44 void testSetToXcon();
45 void testSetToXfun();
46 void testSetToSizecon();
47 void testSetToSizefun();
48 void testSetToXException();
49 void testSetToSizeException();
50 void testGetReferenceNoFromSampleNo();
51
52 BruceTestCase (std::string name) : TestCase (name) {}
53 ~BruceTestCase() {}
54 //
55 //
56 // return the suite of tests to perform
57 //
58 static CppUnitTest::TestSuite* suite ();
59 };
60
61 #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26