Skip to content

Comments

Homework tests#7

Open
shannami wants to merge 3 commits intomainfrom
homeworkTests
Open

Homework tests#7
shannami wants to merge 3 commits intomainfrom
homeworkTests

Conversation

@shannami
Copy link
Owner

Дз №10, Шалахина Анна

@shannami shannami requested a review from WoWaster November 18, 2025 15:40
Copy link
Collaborator

@WoWaster WoWaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В остальном хорошо, но скорее всего придётся много переделать после сдачи домашки на сам список

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вообще этого здесь быть не должно

insertSorted(&head, 7);
insertSorted(&head, 5);

bool result = head != NULL && head->value == 3 && head->next != NULL && head->next->value == 5 && head->next->next != NULL && head->next->next->value == 5 && head->next->next->next != NULL && head->next->next->next->value == 7 && head->next->next->next->next == NULL;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ой нет. Напишите функцию, которая сравнивает список с массивом. Так будет сиииильно лучше.

insertSorted(&head, 3);
insertSorted(&head, 5);

bool result = deleteValue(&head, 3) == 1 && head != NULL && head->value == 1 && head->next != NULL && head->next->value == 5 && head->next->next == NULL;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Аналогично

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И далее тоже

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants