Skip to content

Added files#20

Draft
Quark1111 wants to merge 3 commits intomainfrom
Sorted_List
Draft

Added files#20
Quark1111 wants to merge 3 commits intomainfrom
Sorted_List

Conversation

@Quark1111
Copy link
Owner

No description provided.

@Quark1111 Quark1111 marked this pull request as draft November 24, 2025 16:30
@Quark1111 Quark1111 requested a review from chernishev November 24, 2025 16:31

Choose a reason for hiding this comment

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

Лучше вынести тесты в отдельный файл.

Test2();
Test3();
Test4();
printf("%s \n", "all tests have been completed successfully");

Choose a reason for hiding this comment

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

Странная конструкция. Почему бы не использовать puts или хотя бы printf("all tests passed\n")?

#include <string.h>
#include "list.h"

void Test1(){

Choose a reason for hiding this comment

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

Нужно дать тестам более осмысленные имена, либо подписать, что проверяется, в комментариях.


DelList(&List);
assert(List.next == NULL);
}

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