Skip to content

Commit 2ad5c77

Browse files
committed
Update test.cpp
1 parent 21b65cc commit 2ad5c77

File tree

1 file changed

+5
-1
lines changed
  • insert-into-a-binary-search-tree

1 file changed

+5
-1
lines changed

insert-into-a-binary-search-tree/test.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,12 @@ class StringTest : public CppUnit::TestFixture {
160160
println(example.root);
161161
println(example.val);
162162
println(example.output);
163-
for (auto node : nodes) {
163+
for (auto *node : nodes) {
164164
printTreeNode(node);
165+
//delete (node);
166+
}
167+
for (auto* node : nodes) {
168+
// printTreeNode(node);
165169
delete (node);
166170
}
167171
}

0 commit comments

Comments
 (0)