projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bringing in testkit tools
[feisty_meow.git]
/
nucleus
/
library
/
tests_nodes
/
test_symbol_tree.cpp
diff --git
a/nucleus/library/tests_nodes/test_symbol_tree.cpp
b/nucleus/library/tests_nodes/test_symbol_tree.cpp
index 8d4b2a151cc29e7dc28980fe8d36463de0a2d258..bc938d1d80eefbea49a430a403bd700fb878ca57 100644
(file)
--- a/
nucleus/library/tests_nodes/test_symbol_tree.cpp
+++ b/
nucleus/library/tests_nodes/test_symbol_tree.cpp
@@
-63,6
+63,7
@@
int test_symbol_tree::execute()
LOG("please check memory usage and record it, then hit a key to start testing.");
try {
LOG("please check memory usage and record it, then hit a key to start testing.");
try {
+ // creates a crazy tree with only one branch per node, but 40,000 deep.
symbol_tree t("blork");
symbol_tree *curr = &t;
for (int i = 0; i < MAX_NODES_TESTED; i++) {
symbol_tree t("blork");
symbol_tree *curr = &t;
for (int i = 0; i < MAX_NODES_TESTED; i++) {
@@
-82,17
+83,10
@@
int test_symbol_tree::execute()
return 1;
}
return 1;
}
-LOG("got out of the loop");
-
-//one assertion to tickle final report.
- bool farp = true;
- ASSERT_TRUE(farp, "tickling reporting for assertions");
-//hmmm: above shouldn't be needed at all.
-
LOG("check memory usage after the run. then hit a key to end "
"the program.");
LOG("check memory usage after the run. then hit a key to end "
"the program.");
-//create a tree structure...
+//create a
more balanced
tree structure...
//perform known operations and validate shape of tree.
return final_report();
//perform known operations and validate shape of tree.
return final_report();