| 252 | }; |
| 253 | |
| 254 | StringTreePtr getFullTree() { |
| 255 | // Setup tree in all the different ways possible as above. |
| 256 | StringTreePtr tree(StringTree::createRoot()); |
| 257 | tree->getOrCreateChildByName("A"); |
| 258 | tree->getOrCreateChildByName("A").value() = "myVal"; |
| 259 | StringTree::create(*tree, "B"); |
| 260 | tree->getOrCreateChildByName("B").value() = "mySecondVal"; |
| 261 | tree->getOrCreateChildByName("C").value() = "myThirdVal"; |
| 262 | StringTree::create(*tree, "D").value() = "myFourthVal"; |
| 263 | StringTree::create(*tree, "E", "myFifthVal"); |
| 264 | return tree; |
| 265 | } |
| 266 | |
| 267 | TEST(TreeNode, Comparisons) { |
| 268 | StringTreePtr tree = getFullTree(); |