diff --git a/libraries/basicElement/tests/tools/toolsTests.cpp b/libraries/basicElement/tests/tools/toolsTests.cpp new file mode 100644 index 0000000..3437183 --- /dev/null +++ b/libraries/basicElement/tests/tools/toolsTests.cpp @@ -0,0 +1,25 @@ +#define BOOST_TEST_MODULE qc_basic_element_tools + +#include +#include + +using namespace boost::unit_test; +namespace be = basic_element; +namespace trt = basic_element::translator_tool; + +boost::shared_ptr formatter( common::formatters::Formatter::get() ); +boost::shared_ptr color( common::Color::get() ); + +BOOST_AUTO_TEST_SUITE( basic_element_test_suite02 ) + +BOOST_AUTO_TEST_CASE( basic_element_init ) +{ + formatter->init_logging(); + color->enable(); +} + +BOOST_AUTO_TEST_SUITE_END() + +#include "translatorTests.hpp" +// #include "mapTests.hpp" +// #include "rangeTests.hpp" diff --git a/libraries/basicElement/tests/tools/translatorTests.cpp b/libraries/basicElement/tests/tools/translatorTests.hpp similarity index 96% rename from libraries/basicElement/tests/tools/translatorTests.cpp rename to libraries/basicElement/tests/tools/translatorTests.hpp index 412578a..93af490 100644 --- a/libraries/basicElement/tests/tools/translatorTests.cpp +++ b/libraries/basicElement/tests/tools/translatorTests.hpp @@ -1,24 +1,9 @@ -#define BOOST_TEST_MODULE qc_basic_element -#include - -#include - -using namespace boost::unit_test; -namespace be = basic_element; -namespace trt = basic_element::translator_tool; - -boost::shared_ptr formatter( common::formatters::Formatter::get() ); -boost::shared_ptr color( common::Color::get() ); - -BOOST_AUTO_TEST_SUITE( basic_element_test_suite02 ) +BOOST_AUTO_TEST_SUITE( basic_element_test_translator ) BOOST_AUTO_TEST_CASE( basic_element_memory_copy ) { LOG_INFO( "\n>>> basic_element_memory_copy <<<" ); - formatter->init_logging(); - color->enable(); - { LOG_INFO( "\n === memory copy ( 1 byte ) ===" ); char data[] = { 0x10 };