/usr/share/doc/cxxtest/examples/MyTestSuite2.h is in cxxtest 4.4-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | // MyTestSuite2.h
#include <cxxtest/TestSuite.h>
class MyTestSuite2 : public CxxTest::TestSuite
{
public:
void testAddition(void)
{
TS_ASSERT(1 + 1 > 1);
TS_ASSERT_EQUALS(1 + 1, 2);
}
void testMultiplication(void)
{
TS_TRACE("Starting multiplication test");
TS_ASSERT_EQUALS(2 * 2, 5);
TS_TRACE("Finishing multiplication test");
}
};
|