Skip to content
Snippets Groups Projects
Commit 203eaebc authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[tests] Improves unitary test on pool.cpp

parent e7614beb
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ BOOST_AUTO_TEST_CASE (pool_display)
" fontcolor = black, color = black, fillcolor=cyan, style=filled, shape=box ]\n"
"}\n";
/* Check the two substring (remove the date) */
/* Check the two substring (remove the date) -**/
std::string s_output_wgph = oss_output_wgph.str();
std::string s_crmk="*/";
......@@ -134,6 +134,15 @@ BOOST_AUTO_TEST_CASE (pool_display)
BOOST_CHECK(two_sub_string_identical);
// Test name of an object.
std::istringstream an_iss("MyEntityInst.in_double");
dg::SignalBase<int> &aSignal=
dg::PoolStorage::getInstance()->getSignal(an_iss);
std::string aSignalName=aSignal.getName();
testExistence = aSignalName=="MyEntity(MyEntityInst)::input(double)::in_double";
BOOST_CHECK(testExistence);
// Deregister the entity.
dg::PoolStorage::getInstance()->deregisterEntity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment