Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[acc21f]: src / modules / base / functions / test.h Maximize Restore History

Download this file

test.h    62 lines (48 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef BASE_FUN_TEST_H
#define BASE_FUN_TEST_H
#include <cppunit/extensions/HelperMacros.h>
namespace jags {
class ScalarFunction;
}
class BaseFunTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE( BaseFunTest );
CPPUNIT_TEST( testName );
CPPUNIT_TEST( testLogical );
CPPUNIT_TEST( testArithmetic );
CPPUNIT_TEST( testComparison );
CPPUNIT_TEST_SUITE_END();
jags::ScalarFunction *_add;
jags::ScalarFunction *_and;
jags::ScalarFunction *_divide;
jags::ScalarFunction *_equal;
jags::ScalarFunction *_geq;
jags::ScalarFunction *_gt;
jags::ScalarFunction *_leq;
jags::ScalarFunction *_lt;
jags::ScalarFunction *_multiply;
jags::ScalarFunction *_neg;
jags::ScalarFunction *_neq;
jags::ScalarFunction *_not;
jags::ScalarFunction *_or;
jags::ScalarFunction *_pow;
jags::ScalarFunction *_subtract;
void arithmetic1(double);
void arithmetic2(double, double);
void arithmetic3(double, double, double);
void logical1();
void logical2();
void logical3();
void comparison1();
void comparison2(double, double);
void comparison3();
void discrete1();
public:
void setUp();
void tearDown();
void testName();
void testLogical();
void testArithmetic();
void testComparison();
};
#endif // BASE_FUN_TEST_H