projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor mods
[feisty_meow.git]
/
nucleus
/
library
/
tests_nodes
/
test_singly_linked_list.cpp
diff --git
a/nucleus/library/tests_nodes/test_singly_linked_list.cpp
b/nucleus/library/tests_nodes/test_singly_linked_list.cpp
index e5e88c5884a5ccd0406d379a31ee85805ecd4a43..391cac9dc20b1a8024aea339d3caedfa9abbe022 100644
(file)
--- a/
nucleus/library/tests_nodes/test_singly_linked_list.cpp
+++ b/
nucleus/library/tests_nodes/test_singly_linked_list.cpp
@@
-90,7
+90,7
@@
int test_singly_linked_list::execute()
b->set_next(c);
c->set_next(d);
d->set_next(e);
b->set_next(c);
c->set_next(d);
d->set_next(e);
-// e->set_next(NULL_POINTER); // not actually necessary, right?
+ // it's not necessary to set e's next to null; this is the default.
ASSERT_FALSE(singly_linked_list::has_cycle(a), "list should be found to have zero cycles")
}
ASSERT_FALSE(singly_linked_list::has_cycle(a), "list should be found to have zero cycles")
}