RMOL Logo  1.00.14
C++ library of Revenue Management and Optimisation classes and functions
Loading...
Searching...
No Matches
Command-Line Test to Demonstrate How To Test the RMOL Project
struct UnitTestConfig {
UnitTestConfig() {
boost_utf::unit_test_log.set_stream (utfReportStream);
#if defined(BOOST_VERSION) && BOOST_VERSION >= 105900
boost_utf::unit_test_log.set_format (boost_utf::OF_XML);
#else // BOOST_VERSION
boost_utf::unit_test_log.set_format (boost_utf::XML);
#endif // BOOST_VERSION
boost_utf::unit_test_log.set_threshold_level (boost_utf::log_test_units);
//boost_utf::unit_test_log.set_threshold_level (boost_utf::log_successful_tests);
}
~UnitTestConfig() {
}
};
// /////////////// Main: Unit Test Suite //////////////
// Set the UTF configuration (re-direct the output to a specific file)
BOOST_GLOBAL_FIXTURE (UnitTestConfig);
BOOST_AUTO_TEST_SUITE (master_test_suite)
BOOST_AUTO_TEST_CASE (rmol_forecaster_q_forecasting) {
const bool lTestFlag = true; //testForecasterHelper(0);
BOOST_CHECK_EQUAL (lTestFlag, true);
BOOST_CHECK_MESSAGE (lTestFlag == true,
"The test has failed. Please see the log file for "
<< "more details");
}
// End the test suite
BOOST_AUTO_TEST_SUITE_END()