|
Boost Users : |
From: Stephen Torri (torrisa_at_[hidden])
Date: 2008-05-20 16:09:40
I am sure this is a silly common answer but I am not sure how to resolve
it. Here is my test suite below. I am following
http://www.hpfsc.de/boosttest/ as my guide.
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE Statistical algorithm test suite
#include <boost/test/unit_test.hpp>
#include "Statistical_Test.h"
using boost::unit_test_framework::test_suite;
using boost::unit_test_framework::test_case;
using namespace libreverse::classifier;
class statistical_test_suite : public test_suite
{
public:
statistical_test_suite ()
: test_suite ( "statistical_test_suite" )
{
// create an instance of the test cases class
boost::shared_ptr<Statistical_Test> instance ( new Statistical_Test() );
test_case* test_Constructor_test_case = BOOST_CLASS_TEST_CASE( &Statistical_Test::test_Constructor, instance );
add ( test_Constructor_test_case );
}
};
test_suite* init_unit_test_suite ( int, char** )
{
test_suite* top_test_suite = BOOST_TEST_SUITE("Statistical algorithm test suite");
// add test suites to the top test suite
top_test_suite->add ( new statistical_test_suite() );
return top_test_suite;
}
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net