diff options
| author | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-05-06 16:21:31 +0000 |
|---|---|---|
| committer | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-05-06 16:21:31 +0000 |
| commit | c29893f76ae8c37e14eb99f25d517535c1d37b42 (patch) | |
| tree | e32a57e2fb34631739510a726e3865d3f3db9a32 /examples/msvc6/HostApp | |
| parent | 92c488aa6f744a1f0f0bbc92ad485d5cc715736a (diff) | |
| download | cppunit-c29893f76ae8c37e14eb99f25d517535c1d37b42.tar.gz | |
Removed unnecessary #include's of TestSuiteBuilder.h
Removed RTTI dependent stuff from TestSuite and TestSuiteBuilder.
Diffstat (limited to 'examples/msvc6/HostApp')
| -rw-r--r-- | examples/msvc6/HostApp/ExampleTestCase.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/examples/msvc6/HostApp/ExampleTestCase.cpp b/examples/msvc6/HostApp/ExampleTestCase.cpp index 6cfd562..98089dd 100644 --- a/examples/msvc6/HostApp/ExampleTestCase.cpp +++ b/examples/msvc6/HostApp/ExampleTestCase.cpp @@ -1,12 +1,7 @@ -#include <cppunit/extensions/TestSuiteBuilder.h> - #include "ExampleTestCase.h" - CU_TEST_SUITE_REGISTRATION( ExampleTestCase ); - - void ExampleTestCase::example () { assertDoublesEqual (1.0, 1.1, 0.05); @@ -45,10 +40,10 @@ void ExampleTestCase::testEquals () std::auto_ptr<long> l1 (new long (12)); std::auto_ptr<long> l2 (new long (12)); - assertLongsEqual (12, 12); - assertLongsEqual (12L, 12L); - assertLongsEqual (*l1, *l2); - + assertLongsEqual (12, 12); + assertLongsEqual (12L, 12L); + assertLongsEqual (*l1, *l2); + assert (12L == 12L); assertLongsEqual (12, 13); assertDoublesEqual (12.0, 11.99, 0.5); |
