// This class implements a set of CppUnit example test cases which
// succeed or fail. It isn't intended to show how to write CppUnit tests.
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
class TestExamples1;
CPPUNIT_TEST_SUITE_REGISTRATION(TestExamples1);
class TestExamples1 : public CPPUNIT_NS::TestFixture
{
CPPUNIT_TEST_SUITE(TestExamples1);
CPPUNIT_TEST(testAssertEqualSucceed);
CPPUNIT_TEST_SUITE_END();
void testAssertEqualSucceed()
{
CPPUNIT_ASSERT_EQUAL(1, 1);
}
};
评论0
最新资源