From 6941842f95e08cac187141d68ecf96b516a0f69f Mon Sep 17 00:00:00 2001 From: Mykyta Sadchenko Date: Thu, 18 Apr 2024 08:34:19 +0200 Subject: [PATCH] f --- cv9/snake.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv9/snake.c b/cv9/snake.c index c5bd055..e28b9b7 100644 --- a/cv9/snake.c +++ b/cv9/snake.c @@ -36,7 +36,7 @@ void test_remove_snake_non_empty() { struct snake* new_head = remove_snake(head); - if (new_head != NULL && new_head->x == 2 && new_head->y == 2) { + if (new_head != NULL && new_head->x == 3 && new_head->y == 3) { printf("Test passed: new head coordinates are correct.\n"); } else { printf("Test failed: new head coordinates are incorrect.\n"); @@ -44,6 +44,7 @@ void test_remove_snake_non_empty() { free(new_head); + free(tail); } int is_snake(struct snake* snake, int x, int y) {