simple-linked-list: rename `pop` and `peek` tests
Rename `pop` and `peek` tests so that they both refer to `head element`
to avoid confusion: `pop` removes an element while `peek` does not.
@@ -30,7 +30,7 @@ fn test_pop_decrements_length() {
#[test]
#[ignore]
-fn test_pop_returns_last_added_element() {
+fn test_pop_returns_head_element_and_removes_it() {
let mut list: SimpleLinkedList<u32> = SimpleLinkedList::new();
list.push(1);
list.push(2);
@@ -41,7 +41,7 @@ fn test_pop_returns_last_added_element() {
#[test]
#[ignore]
-fn test_peek_returns_head_element() {
+fn test_peek_returns_reference_to_head_element_but_does_not_remove_it() {
let mut list: SimpleLinkedList<u32> = SimpleLinkedList::new();
assert_eq!(list.peek(), None, "No element should be contained in list");
list.push(2);
