|
15 |
virtual ~SampleTestCase1 (); |
15 |
virtual ~SampleTestCase1 (); |
16 |
|
16 |
|
17 |
private: |
17 |
private: |
18 |
virtual bool DoRun (void); |
18 |
virtual void DoRun (void); |
19 |
}; |
19 |
}; |
20 |
|
20 |
|
21 |
// Add some help text to this case to describe what it is intended to test |
21 |
// Add some help text to this case to describe what it is intended to test |
|
34 |
// This method is the pure virtual method from class TestCase that every |
34 |
// This method is the pure virtual method from class TestCase that every |
35 |
// TestCase must implement |
35 |
// TestCase must implement |
36 |
// |
36 |
// |
37 |
bool |
37 |
void |
38 |
SampleTestCase1::DoRun (void) |
38 |
SampleTestCase1::DoRun (void) |
39 |
{ |
39 |
{ |
40 |
// A wide variety of test macros are available in src/core/test.h |
40 |
// A wide variety of test macros are available in src/core/test.h |
|
42 |
// Use this one for floating point comparisons |
42 |
// Use this one for floating point comparisons |
43 |
NS_TEST_ASSERT_MSG_EQ_TOL (0.01, 0.01, 0.001, "Numbers are not equal within tolerance"); |
43 |
NS_TEST_ASSERT_MSG_EQ_TOL (0.01, 0.01, 0.001, "Numbers are not equal within tolerance"); |
44 |
|
44 |
|
45 |
// Return false if an error has _not_ occurred |
|
|
46 |
return false; |
47 |
} |
45 |
} |
48 |
|
46 |
|
49 |
// The TestSuite class names the TestSuite, identifies what type of TestSuite, |
47 |
// The TestSuite class names the TestSuite, identifies what type of TestSuite, |