Browse Source

[2150] Add a diagram of the DomainTree after the node has been added

Mukund Sivaraman 12 years ago
parent
commit
5b8f36f524
1 changed files with 20 additions and 0 deletions
  1. 20 0
      src/lib/datasrc/memory/tests/domaintree_unittest.cc

+ 20 - 0
src/lib/datasrc/memory/tests/domaintree_unittest.cc

@@ -530,6 +530,26 @@ TEST_F(DomainTreeTest, findInSubTreeSameLabelSequence) {
     // First insert a "c.g.h." node.
     dtree_expose_empty_node.insert(mem_sgmt_, n1, &dtnode);
 
+    /* Now, the tree looks like:
+     *
+     *             .
+     *             |
+     *             b
+     *           /   \
+     *          a    d.e.f
+     *              /  |  \____
+     *             c   |       \
+     *                 |        g.h
+     *                 |         |
+     *                w.y        i
+     *              /  |  \     / \
+     *             x   |   z   c   k
+     *                 |   |
+     *                 p   j
+     *               /   \
+     *              o     q
+     */
+
     // Make a non-absolute label sequence. We will search for this same
     // sequence in two places in the tree.
     LabelSequence ls1(n1);