Image to test C++ code using CxxTest.
178
docker run --rm -v $(pwd):$(pwd) -w $(pwd) patriciomoreno/codeworkout-cpp:v1.0 bash --login -c "cxxtestgen --error-printer -o runner.cpp MyTestSuite1.h;g++ -o runner -I/usr/local/cxxtest runner.cpp;./runner"
#include <cxxtest/TestSuite.h>
class MyTestSuite1 : public CxxTest::TestSuite
{
public:
void testAddition(void)
{
TS_ASSERT(1 + 1 > 1);
TS_ASSERT_EQUALS(1 + 1, 2);
}
};
Content type
Image
Digest
Size
502.1 MB
Last updated
over 8 years ago
docker pull patriciomoreno/codeworkout-cpp:v2.0