diff --git a/tests/library/hierarchy-orientation-indicator-test.cpp b/tests/library/hierarchy-orientation-indicator-test.cpp index ab3274138..2a8a80590 100644 --- a/tests/library/hierarchy-orientation-indicator-test.cpp +++ b/tests/library/hierarchy-orientation-indicator-test.cpp @@ -59,14 +59,11 @@ namespace test { using lib::IterStateWrapper; using lib::transformIterator; - const uint MAX_ID(100); const uint MAX_CHILDREN(5); - const double CHILD_PROBABILITY(0.06); - const uint CHILDREN_TOTAL_LIMIT(20); - - const uint CHILDREN_SEED(20); - uint random_children_created(0); + const double CHILD_PROBABILITY(0.45); + const uint CHILDREN_SEED(50); + uint nextChildID(1); /** * pick a random child count below #MAX_CHILDREN @@ -81,10 +78,7 @@ namespace test { ASSERT (0 < bottom); ASSERT (bottom < limit); - ++random_children_created; int cnt = (rand() % limit) - bottom; -// if (random_children_created > CHILDREN_TOTAL_LIMIT) cnt=0; - if (0 < MAX (0, cnt)) cout << "Kau: "<< cnt <children_.size()<<")"< start new tree path at root path_.clear(); path_.push_back(nextNode); - return 0; // by convention, here the root is an implicitly pre-existing context - } + cout << "-----new-path-child="<id_<<" ("<children_.size()<<")"<orientation += 1; + cout << "Node "<id<<" : ^"< 0) { treeVisitation->orientation -= 1; + cout << "Node "<id<<" : V"<id<<" : ++>"<id); ++treeVisitation; }}} @@ -365,10 +371,30 @@ namespace test { TreeRebuilder reconstructed (depthFirst (AddressExposingIter(eachElm (testWood))) >>= exploreChildren); - cout << reconstructed.children_.size() << "=?=" << testWood.size(); + cout << "total children "<