Skip to content

Commit

Permalink
update: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohith-Raju committed May 11, 2024
1 parent 636504f commit 9eb021a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 33 deletions.
30 changes: 0 additions & 30 deletions .vscode/tasks.json

This file was deleted.

4 changes: 2 additions & 2 deletions include/LinkedList.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ template <typename T> void LinkedList<T>::deep_clean(Node *&list) {
}
delete list;
list = nullptr;
this->size_counter--;
this->size_counter = 0;
return;
}

Expand Down Expand Up @@ -428,7 +428,7 @@ template <typename T> bool LinkedList<T>::operator==(LinkedList<T> &right) {
}

template <typename T> bool LinkedList<T>::operator!=(LinkedList<T> &right) {
!(*this == right);
return !(*this == right);
}

/* Iterator Operations */
Expand Down
1 change: 0 additions & 1 deletion testing/TestLinkedList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ TEST(LinkedList, TestCleanUp) {
}
ASSERT_EQ(test->head, nullptr);
ASSERT_EQ(test->tail, nullptr);
ASSERT_EQ(test->size(), 0);
}

TEST(LinkedList, TestPosition) {
Expand Down

0 comments on commit 9eb021a

Please sign in to comment.