CPPUNIT_ prefix missing in example for Writing C++ Unit Tests section
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openWNS-Documentation |
New
|
Undecided
|
Unassigned |
Bug Description
The example is not working. The CPPUNIT_ prefix for the macros is missing.
For instance TEST_SUITE must be replaced by CPPUNIT_TEST_SUITE (see below).
Since the code is included from running examples it must be some error or misuse in the toolchain.
This is what the example looks like on the webpage.
-------
#include <WNS/TestFixtur
#include <WNS/StopWatch.hpp>
namespace wns { namespace tests {
/**
* @brief test for wns::StopWatch
* @author Marc Schinnenburg <email address hidden>
*/
class StopWatchTest :
public wns::TestFixture
{
TEST_SUITE( StopWatchTest );
TEST( testConstructor );
TEST( testGetInSeconds );
TEST_SUITE_END();
etc.....
-------
Regards,
Daniel