Removing polymorph from test

This commit is contained in:
Krzosa Karol
2023-03-31 17:52:10 +02:00
parent 0e01b785f1
commit 61f8c5c825
4 changed files with 11 additions and 4 deletions

View File

@@ -485,6 +485,7 @@ int length(List<T> *list) {
template <class T>
void free_all_nodes(List<T> *list) {
if (list->first == 0) return;
assert(!list->last->next);
assert(!list->first->prev);
list->last->next = list->first_free;