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 BruceTestCase_20050829_H |
17 |
#define BruceTestCase_20050829_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 BruceTestCase : 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 |
void testConstructorException(); |
39 |
void testNull(); |
40 |
void testZero(); |
41 |
void test1d(); |
42 |
void test2d(); |
43 |
void test3d(); |
44 |
void testBig(); |
45 |
void testSetToXcon(); |
46 |
void testSetToXfun(); |
47 |
void testSetToSizecon(); |
48 |
void testSetToSizefun(); |
49 |
void testSetToXException(); |
50 |
void testSetToSizeException(); |
51 |
void testGetReferenceNoFromSampleNo(); |
52 |
|
53 |
BruceTestCase (std::string name) : TestCase (name) {} |
54 |
~BruceTestCase() {} |
55 |
// |
56 |
// |
57 |
// return the suite of tests to perform |
58 |
// |
59 |
static CppUnitTest::TestSuite* suite (); |
60 |
}; |
61 |
|
62 |
#endif |